-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not by default delay the execution of test cases #1170
Conversation
""" | ||
And a file named "features/support/events.rb" with: | ||
""" | ||
AfterConfiguration do |config| | ||
config.on_event :test_run_started do |event| | ||
config.out_stream.puts "test run started" | ||
config.on_event :test_count do |event| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd like this to be called test_case_count
WDYT?
Thanks for pushing away at this @brasmusson, I'll be glad to have the code back to normally not processing all the test cases before execution starts. Two big thoughts here:
What do you think? |
There are a couple of choices here:
In this RP I choose not to introduce any new concepts (optional events of querying the event bus for handlers), therefore a configuration switch is used, and the result is a change in the execution order and a reordering of events. |
* Do not by default delay the execution of test cases until all have been processed through the filter chain. * Change the name of the TestRunStarted event to TestCount event. * Add the option --count-first which ensures that the TestCount event is issued before any test case is executed.
The test case cound event is issued only if a handler for it has been registered. Only in that case are the test case execution delayed until all test cases have been filtered.
808a5f1
to
f630f61
Compare
@mattwynne I've update the PR so that the |
Nice one @brasmusson! I was thinking it would be more generally useful if it send a list of all the test case Do you think it makes sense to replace this event with that one now, or as part of another iteration? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Do not by default delay the execution of test cases until all have been processed through the filter chain.
Details
Depends on cucumber/cucumber-ruby-core#147
Motivation and Context
See #1082 (comment).
Fixes #1167.
How Has This Been Tested?
The automatic test suite has been updated to verify this behaviour.
Types of changes
Checklist: