当我在gradle任务中运行黄瓜测试时,我收到以下错误。我的红宝石版本是:2.2和黄瓜版本是1.2.5

时间:2015-09-25 09:37:05

标签: ruby-on-rails ruby cucumber

Argument to bundle: [exec, cucumber, -p, default, ~@mask1, --format, junit, --out, STDOUT]

Successfully started process 'command 'bundle''

All but one formatter must use --out, only one can print to each stream (or STDOUT) (RuntimeError)

Gemfiles:

gem 'rake', '~>0.9.6', :require => false
gem 'rspec', '~> 2.0.0'
gem "capybara", "~> 1.1.2"
gem "selenium-webdriver", "~> 2.41.0"
gem 'cucumber', '~>1.2.5'

任何人都知道如何修复它?

1 个答案:

答案 0 :(得分:0)

我得到了答案。

https://github.com/cucumber/cucumber-ruby/pull/434

one --format必须一个--out。