Note that there are some explanatory texts on larger screens.

plurals
  1. POCucumber tests strange error at end
    primarykey
    data
    text
    <p>I have a strange error when running a cucumber test. All tests run fine, but there is this error at the end:</p> <pre><code>→ bundle exec rake cucumber /Users/rudolf/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -S bundle exec cucumber --profile default Using the default profile... (All tests run properly at this point) 27 scenarios (27 passed) 245 steps (245 passed) 0m27.778s /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1037:in `block in process_args': invalid option: --profile (OptionParser::InvalidOption) from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `new' from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `process_args' from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1066:in `_run' from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run' from /Users/rudolf/.rvm/gems/ruby-2.0.0-p247@global/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun' </code></pre> <p>I am using Ruby 2 with Rails 4, this is the test part in my Gemfile:</p> <pre><code>group :development, :test do gem 'rspec-rails' gem 'capybara' gem 'cucumber-rails', require: false gem 'selenium-webdriver' gem 'database_cleaner' gem 'shoulda-matchers' gem 'nokogiri' end </code></pre> <p>I also run these tests on Semaphore (<a href="https://semaphoreapp.com" rel="nofollow">https://semaphoreapp.com</a>), it happens there too.</p> <p>Edit: <code>cucumber.yml</code>:</p> <pre><code>&lt;% rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" %&gt; default: &lt;%= std_opts %&gt; features wip: --tags @wip:3 --wip features rerun: &lt;%= rerun_opts %&gt; --format rerun --out rerun.txt --strict --tags ~@wip </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload