Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError) Follow
Hi
I recently upgraded to IntellijIdea 14.1.4 using Ruby plugin 7.1.0.20150617 and I am having the issue below when I try to run BDD feature from IntelliJIdea. I can run the cucumber BDD tests fine from command line. I am running Ruby version: ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.3.0] on MacOx Yosemite. Any idea how to fix the issue?
Regards,
Ayache
Error:
/Users/akhettar/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber /Users/akhettar/workspaces/inps/mhs-automation/features/critical.feature --format Teamcity::Cucumber::Formatter --expand --name "^Data insertion as a CRx user$" --color -r features Testing started at 05:00 ... WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1 WARNING > DEPRECATED: #default_wait_time= is deprecated, please use #default_max_wait_time= instead Running with TIME_OUT = 30 RUN_EVERYTHING = false TEST_ENV = http://liferay1.localhost.local:8080 BROWSER = firefox TEST_QUEUE_STOMP = activemq.localhost.local:61617 TEST_FABRIC = http://fabric1.localhost.local:9000 TEST_SOLR = http://solr.localhost.local:8983 wrong number of arguments (1 for 3) Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError) /Users/akhettar/Library/Application Support/IntelliJIdea14/ruby/rb/testing/patch/bdd/teamcity/cucumber/formatter_03103.rb:22:in `initialize' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:209:in `new' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:209:in `create_formatter' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:202:in `block in formatters' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:176:in `block in formatter_factories' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:171:in `map' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:171:in `formatter_factories' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:201:in `formatters' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:183:in `report' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:67:in `run!' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/cli/main.rb:32:in `execute!' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/bin/cucumber:8:in `<top (required)>' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber:23:in `load' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber:23:in `<top (required)>' -e:1:in `load' -e:1:in `<main>'
Gemfile
gem 'cucumber'
gem 'rspec'
gem 'capybara'
# The Selenium Grid RPM also needs updating to match the version
gem 'selenium-webdriver','2.47.1'
gem 'httparty'
gem 'faker'
gem 'poltergeist'
gem 'rspec-expectations'
gem 'waitutil'
gem 'json'
gem 'rsolr'
gem 'onstomp'
#gem 'onstomp', '~> 1.0.8'
gem 'nokogiri'
gem 'nokogiri-pretty'
#gem 'nokogiri','1.6.5'
gem 'equivalent-xml'
gem 'easy_diff', '~> 0.0.4'
Please sign in to leave a comment.
Hi,
At the moment we do not support the latest version of Cucumber. Work in progress.
https://youtrack.jetbrains.com/issue/RUBY-17157
Many thanks for your help, I will try to downgrade cucumber to a lower version.
I am now seeing this identical error (in 2021) and am wondering if it's the same problem? This post is the only hit in a Google search for exactly "Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)" so it would be odd if it weren't.
As rolling back to `cucumber-rails 2.1.0` has resolved this error, I think this is the correct interpretation.
When can we expect a fix
Same here, im facing the same problem
I'll boost it to a request, and put a link here, then.
Or not. I can't reproduce it in order to generate the relevant `Gemfile.lock`. Please link here with that post?
Derrell Durrett, would it be possible to provide a project sample for reproduce? As far as I understand the issue happens in the latest 2021.1 EAP as well?
Olga Kuvardina –
I would love to, but I can't recreate it! Ive updated my project to Ruby 2.7.2, so possibly that's the reason.
Thanks,
Derrell
Just not using the built in formatter solved it for me:
Edit Configurations... => Templates > Cucumber
In Runner Options: add a formatter of your choice. Simply adding
did it for me. Keep in mind that this change will just have an immediate effect on tests which are not listed in your run configuration list as you executed them earlier (of course with an older configuration). For tests in that list: either just wipe the list or adjust each individual configuration in case you explicitly want to keep it.