Skip to content
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

Aruba Reporting is not compatible with cucumber 2 #256

Closed
ghost opened this issue May 18, 2015 · 7 comments
Closed

Aruba Reporting is not compatible with cucumber 2 #256

ghost opened this issue May 18, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented May 18, 2015

@mattwynne @jarl-dk

I took a look at aruba/reporting.rb because of #161. After I upgraded to cucumber 2.0.0, reporting does not work anymore. There seems to be some progress on changing the Formatter API of cucumber.

Does it make sense to refactor the Reporting Module of aruba into a proper cucumber formatter? Seems to be doable and reasonable. What do you think?

References: cucumber/common#839, cucumber/common#851

@jbpros
Copy link
Member

jbpros commented Jun 5, 2015

We're using Aruba's reporting in Cucumber.js's suite. It's broken since we upgraded to Cucumber 2.0.0:

      undefined method `line' for #<Cucumber::RunningTestCase::Scenario:0x007fcd0bbabb68> (NoMethodError)
      /Users/jbpros/.gem/ruby/2.1.5/gems/aruba-0.6.2/lib/aruba/reporting.rb:101:in `block in <top (required)>'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/core_ext/instance_exec.rb:25:in `instance_exec'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/core_ext/instance_exec.rb:25:in `block in cucumber_instance_exec'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/core_ext/instance_exec.rb:42:in `cucumber_run_with_backtrace_filtering'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/core_ext/instance_exec.rb:13:in `cucumber_instance_exec'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/rb_support/rb_hook.rb:14:in `invoke'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/runtime/support_code.rb:173:in `block (2 levels) in apply_after_hooks'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/action.rb:22:in `call'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/action.rb:22:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/step.rb:31:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:99:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:46:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:24:in `test_step'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/step.rb:16:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:24:in `block (3 levels) in describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:23:in `each'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:23:in `block (2 levels) in describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/prepare_world.rb:22:in `call'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/prepare_world.rb:22:in `block in test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/around_hook.rb:16:in `call'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/around_hook.rb:16:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:99:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:46:in `execute'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:30:in `around_hook'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/around_hook.rb:11:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:92:in `block (2 levels) in compose_around_hooks'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:93:in `call'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:93:in `compose_around_hooks'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:22:in `block in describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:17:in `call'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/runner.rb:17:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/prepare_world.rb:11:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/apply_around_hooks.rb:8:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/apply_after_hooks.rb:5:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/apply_before_hooks.rb:5:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/apply_after_step_hooks.rb:8:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/activate_steps.rb:8:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/filters/quit.rb:11:in `test_case'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/case.rb:21:in `describe_to'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/filters/locations_filter.rb:17:in `block in done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/filters/locations_filter.rb:16:in `each'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/filters/locations_filter.rb:16:in `done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/filter.rb:61:in `done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/test/filters/tag_filter.rb:18:in `done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/compiler.rb:23:in `done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core/gherkin/parser.rb:31:in `done'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core.rb:29:in `parse'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-core-1.1.3/lib/cucumber/core.rb:18:in `compile'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/runtime.rb:70:in `run!'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/lib/cucumber/cli/main.rb:38:in `execute!'
      /Users/jbpros/.gem/ruby/2.1.5/gems/cucumber-2.0.0/bin/cucumber:9:in `<top (required)>'
      /Users/jbpros/.gem/ruby/2.1.5/bin/cucumber:23:in `load'
      /Users/jbpros/.gem/ruby/2.1.5/bin/cucumber:23:in `<main>'

@mattwynne
Copy link
Member

I would like to remove Aruba Reporting and stop supporting it. I think it's an old idea. What are you using it for @jbpros?

@mattwynne
Copy link
Member

Are there any tests that describe how Reporting is supposed to behave?

@maxmeyer
Copy link
Member

maxmeyer commented Jun 6, 2015

Not really No there's no specification for that. We can move it to a separate gem to implement a cucumber-formatter? Maybe a subclass of the cucumber html formatter?

@ghost
Copy link
Author

ghost commented Aug 19, 2015

@jbpros What are you are using aruba/reporting for? Would that be helpful for you instead? https://github.com/cucumber/aruba/blob/master/features/commands/debug_command.feature

Aruba/Reporting is deprecated and will be removed. So I'm going to close this for now.

@ghost ghost closed this as completed Aug 19, 2015
@jbpros
Copy link
Member

jbpros commented Aug 19, 2015

We were using it in cucumber.js's own feature suite. But we're actually fine without it.

@maxmeyer
Copy link
Member

@jbpros But why? What's reason behind this? What are you using it for? Troubleshooting? Generating some kind of documentation?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants