黄瓜统计宝石不起作用
我正在使用Cucumber和Cucumber来进行自动化。 我已安装黄瓜统计宝石用于报告目的。 我在env.rb文件中添加了require'cucumber_statistics / autoload'。 成功执行特征文件后,它显示错误为:
未定义的方法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' method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117:in
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
method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117:in
accept'/ method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117:in
/local/ method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117: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
/ method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/ast.rb:117: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
/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
ruby- step_invocation' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:543:in
cucumber- 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'/usr/local/rvm/gems/ step_invocation' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:543:in
2.2.2/gems/ step_invocation' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:543:in
3.0.1/lib/cucumber/formatter/legacy_api/ step_invocation' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:543:in
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
/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'/ usr / local / rvm /gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/form atter / legacy_api / adapter.rb:107: 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
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/formatter/legacy_api/adapter.rb: 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
初始化块中/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
在广播块中/usr/local/rvm/gems/ruby-2.2。 2 / gems / cucumber-core-3.0.0 / lib / cucumber / core / event_bus.rb:34:在each' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus.rb:34:in
广播'/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/event_bus。 rb:40:在method_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/runner.rb:35:in
usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/runner.rb:35:in around_hook'/ USR /本地/ RVM /宝石/红宝石2.2.2 /宝石/黄瓜核-3.0.0 / LIB /黄瓜/型芯/测试/ around_hook.rb:12:在describe_to' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:120: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
在compose_around_hooks'/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case 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级)中。 rb:121:在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'/ USR /本地/ RVM /宝石/红宝石2.2.2 /宝石/黄瓜核-3.0.0 / LIB /黄瓜/型芯/测试/ case.rb:26:在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
调用'/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
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core- 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' test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25:in
。 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
/ test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25: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
/ test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25: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
/ test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25: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
/ test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25: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
/ test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/test/case.rb:25: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
:25: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
'/ USR /本地/ RVM /宝石/红宝石2.2.2 /宝石/黄瓜核-3.0.0 / lib目录/黄瓜/核心/ filter.rb:57:我 n test_case' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/retry.rb:18:in
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/retry.rb:18:in test_case'/ usr / local / rvm / gems / ruby-2.2.2 / gems / cucumber-core-3.0.0 / lib / cucumber / core / test / case.rb:25:在describe_to' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/quit.rb:12:in
/usr/local/rvm/gems/ruby-2.2.2/gems/中describe_to' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/quit.rb:12:in
test_case' describe_to' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/quit.rb:12:in
core / test / case.rb:25:在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
/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/filters/broadcast_test_run_started_event.rb:20:in block在/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
完成'/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core- 3.0.0 / lib / cucumber / core / filter.rb:62:已done' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in
完成'/ usr / local / rvm / gems / ruby-2.2.2 / gems / cucumber-core-3.0.0 / lib / cucumber / core / filter.rb:62:在done' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/filter.rb:62:in
完成'/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
完成'/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
/ usr / local / rvm / gems / 2.2.2 / gems / cucumber-core-3.0.0 / lib / cucumber / core / compiler.rb:24:在done' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core/gherkin/parser.rb:37:in
完成'/usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/ core.rb:32: parse' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-core-3.0.0/lib/cucumber/core.rb:21:in
compile'/ usr /本地/ RVM /宝石/ ruby-2.2.2 / gems / cucumber-3.0.1 / lib / cucumber / runtime.rb:74:在run!' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/cli/main.rb:33:in
run!' /usr/local/rvm/gems/ruby-2.2.2/gems/cucumber-3.0.1/lib/cucumber/cli/main.rb:33:in
execute!' /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'/usr/local <top (required)>' /usr/local/rvm/gems/ruby-2.2.2/bin/cucumber:23:in
in`'
Ruby version ='2.2.2` Rails ='4.2.7'Cucumber ='3.0.1'
是否有任何其他报告机制可以用于红宝石黄瓜自动化?
链接地址: http://www.djcxy.com/p/6609.html