ci report failing with latest cucumber #4

Closed
ssmithstone opened this Issue Apr 8, 2010 · 6 comments

Comments

Projects
None yet
4 participants

(See full trace by running task with --trace)
ssmithstone@ssmithstone-dev:~/Code/insurefirstaid.com/insurefirstaid-ror$ rake ci:setup:cucumber cucumber --trace
(in /home/ssmithstone/Code/insurefirstaid.com/insurefirstaid-ror)
** Invoke ci:setup:cucumber (first_time)
** Invoke ci:setup:cucumber_report_cleanup (first_time)
** Execute ci:setup:cucumber_report_cleanup
rm -rf features/reports
** Execute ci:setup:cucumber
** Invoke cucumber (first_time)
** Invoke cucumber:ok (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute cucumber:ok
/usr/bin/ruby1.8 -I "/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/lib:lib" "/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/cucumber" --require /usr/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/cucumber_loader.rb --format CI::Reporter::Cucumber
Using the default profile...
Cucumber::Ast::Visitor is deprecated and will be removed. You no longer need to inherit from this class.
Error creating formatter: CI::Reporter::Cucumber (RuntimeError)
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/ast/visitor.rb:7:in initialize' /usr/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/cucumber.rb:55:ininitialize'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/configuration.rb:144:in new' /usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/configuration.rb:144:informatters'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/configuration.rb:139:in map' /usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/configuration.rb:139:informatters'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/configuration.rb:64:in build_runner' /usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/main.rb:58:inexecute!'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/main.rb:20:in execute' /usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/bin/cucumber:8 rake aborted! Command failed with status (1): [/usr/bin/ruby1.8 -I "/usr/lib/ruby/gems/1....] /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:insh'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:insh'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in sh' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1029:inruby'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in ruby' /usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/lib/cucumber/rake/task.rb:68:inrun'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.6.4/lib/cucumber/rake/task.rb:138:in define_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

my rake , ruby is very not very good so not sure where to look as the rake ci:setup:rspec spec is working fine just that its failing with the lastest cucumber cheers

Yeah this is affecting my build as well :-o

ssassi commented Jun 24, 2010

Yes, my build is affected too! It seems that Cucumber::Ast::Visitor is deprecated.
I appreciate your help!

It seems like Cucumber nowadays includes a JUnit formatter already:
-f, --format FORMAT How to format features (Default: pretty). Available formats:
junit : Generates a report similar to Ant+JUnit.

so maybe ci:setup:cucumber can be deprecated in favor of the build in one.

I created[1] a rake step to act as a replacement for ci:setup:cucumber so that I can finally execute:

rake ci:setup:rspec spec ci:setup:cucumber cucumber

[1] http://gist.github.com/461262

Owner

nicksieger commented Oct 11, 2010

Modern cucumber support in fc3cef0. You may get better reporting with cucumber --format junit, but at least ci_reporter understands it.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment