Method: RSpec::Core::World#example_count
- Defined in:
- lib/rspec/core/world.rb
permalink #example_count(groups = example_groups) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get count of examples to be run.
109 110 111 112 |
# File 'lib/rspec/core/world.rb', line 109 def example_count(groups=example_groups) FlatMap.flat_map(groups) { |g| g.descendants }. inject(0) { |a, e| a + e.filtered_examples.size } end |