We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The html and message formatters cause Cucumber to crash when an AfterStep hook is defined.
html
message
AfterStep
To Reproduce Steps to reproduce the behavior:
In a Cucumber 4 project
Define an AfterStep hook
AfterStep do # noop end
Run cucumber --format html --out index.html
cucumber --format html --out index.html
No hook found for 6c61579a-e729-4d9a-988c-fa8bc282a9a4 }. Known: ["e2c27447-c655-4aae-a248-c4bb90bc7e84"] (Cucumber::Formatter::TestStepUnknownError) /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/query/hook_by_test_step.rb:16:in `hook_id' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:115:in `hook_step_to_message' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:102:in `test_step_to_message' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `block in on_test_case_ready' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `map' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `on_test_case_ready' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `block in broadcast' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `each' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `broadcast' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:40:in `method_missing' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/configuration.rb:34:in `notify' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/broadcast_test_case_ready_event.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_around_hooks.rb:10:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_after_hooks.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_before_hooks.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_after_step_hooks.rb:10:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/activate_steps.rb:12:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:18:in `block in done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:17:in `each' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:17:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/filter.rb:62:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/compiler.rb:31:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/gherkin/parser.rb:46:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core.rb:35:in `parse' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core.rb:24:in `compile' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/runtime.rb:78:in `run!' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/cli/main.rb:29:in `execute!' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/bin/cucumber:9:in `<top (required)>'
Run cucumber --format message
cucumber --format message
No hook found for 5c4f5cbb-3ebd-408f-92c8-6298854ebdf0 }. Known: ["685158b4-219c-4a64-9b8b-e9c09d769145"] (Cucumber::Formatter::TestStepUnknownError) /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/query/hook_by_test_step.rb:16:in `hook_id' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:115:in `hook_step_to_message' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:102:in `test_step_to_message' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `block in on_test_case_ready' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `map' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/formatter/message_builder.rb:94:in `on_test_case_ready' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `block in broadcast' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `each' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:34:in `broadcast' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/event_bus.rb:40:in `method_missing' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/configuration.rb:34:in `notify' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/broadcast_test_case_ready_event.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_around_hooks.rb:10:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_after_hooks.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_before_hooks.rb:7:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/apply_after_step_hooks.rb:10:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/filters/activate_steps.rb:12:in `test_case' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/case.rb:28:in `describe_to' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:18:in `block in done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:17:in `each' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/locations_filter.rb:17:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/filter.rb:62:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/compiler.rb:31:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core/gherkin/parser.rb:46:in `done' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core.rb:35:in `parse' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-core-7.0.0/lib/cucumber/core.rb:24:in `compile' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/runtime.rb:78:in `run!' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/lib/cucumber/cli/main.rb:29:in `execute!' /usr/local/bundle/ruby/gems/2.6.0/gems/cucumber-4.0.1/bin/cucumber:9:in `<top (required)>'
Expected behavior Cucumber should run successfully and format output in HTML and JSON respectively.
The text was updated successfully, but these errors were encountered:
Add test describing issue #1433
e9b22a3
This should be fixed with the 4.1.0 release of cucumber-ruby
cucumber-ruby
Sorry, something went wrong.
Thanks @vincent-psarga. It sure is 🎉
vincent-psarga
No branches or pull requests
Describe the bug
The
html
andmessage
formatters cause Cucumber to crash when anAfterStep
hook is defined.To Reproduce
Steps to reproduce the behavior:
In a Cucumber 4 project
Define an
AfterStep
hookRun
cucumber --format html --out index.html
See error
Run
cucumber --format message
See error
Expected behavior
Cucumber should run successfully and format output in HTML and JSON respectively.
The text was updated successfully, but these errors were encountered: