我正在使用Cucumber Capybara和Ruby进行自动化。我已经安装了黄瓜统计宝石用于报告目的。我添加了require' cucumber_statistics / autoload'在env.rb文件中。成功执行功能文件后,它显示错误:
未定义的方法regexp_source' for #<Cucumber::Glue::StepDefinition:0x0000000293dda0> (NoMethodError)
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber_statistics-2.3.0/lib/cucumber_statistics/formatter.rb:29:in
after_step_result&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/ignore_missing_messages.rb:11:in method_missing'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117:in
接受&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:580:in step_invocation'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:543:in
step_invocation&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:387:in print_step'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:251:in
after_test_step&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:107:in after_test_step'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:31:in
阻止初始化&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:34:in call'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:34:in
阻止广播&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:34:in each'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:34:in
广播&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:40:in method_missing'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/runner.rb:35:in
around_hook&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/around_hook.rb:12:in describe_to'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:120:in
块(2级)在compose_around_hooks&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:121:in call'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:121:in
compose_around_hooks&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:26:in block in describe_to'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/runner.rb:19:in
来电&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/runner.rb:19:in test_case'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25:in
describe_to&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/prepare_world.rb:12:in test_case'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25:in
describe_to&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:57:in test_case'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/retry.rb:18:in
test_case&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25:in describe_to'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/quit.rb:12:in
test_case&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25:in describe_to'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/broadcast_test_run_started_event.rb:20:in
阻止完成&#39 ;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/broadcast_test_run_started_event.rb:19:in map'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/broadcast_test_run_started_event.rb:19:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in done'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in done'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in done'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/filters/locations_filter.rb:20:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in done'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/compiler.rb:24:in done'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/gherkin/parser.rb:37:in
已完成&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core.rb:32:in parse'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core.rb:21:in
编译&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/runtime.rb:74:in run!'
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/cli/main.rb:33:in
执行!&#39;
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/bin/cucumber:9:in <top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/bin/cucumber:23:in
load&#39;
/usr/local/rvm/gems/ruby-2.2.2/bin/cucumber:23:in`&#39;
Ruby版本=&#39; 2.2.2` Rails =&#39; 4.2.7&#39; 黄瓜=&#39; 3.0.1&#39;
我可以使用其他报告机制进行红宝石黄瓜自动化吗?