Skip to content

Use ExampleGroup.descendant_filtered_examples to count example to be run

gitlab-qa-bot requested to merge github/fork/hanachin/fix_example_count into master

Created by: hanachin

RSpec.world.example_count returns smaller number for this pull request's spec/rspec/core/world_spec.rb case.

RSpec.world.example_count is used in create StartNotification. When RSpec.world.example_count returns smaller number than actual examples count, I've got fuubar reporter warning like below:

WARNING: Your progress bar is currently at 6 out of 6 and cannot be incremented. In v2.0.0 this will become a ProgressBar::InvalidProgressError. 6/6 |====================================== 100 ======================================>| Time: 00:00:03

Merge request reports