[Ruby] Cucumber 1.2.1 - ambiguous option -p

200 views
Skip to first unread message

byrnejb

unread,
Feb 27, 2013, 11:06:39 AM2/27/13
to cu...@googlegroups.com
I have begun to see a message respect the profile option at the end of my cucumber runs.

bundle exec cucumber -p p features/app/models/users/user_authorisation.feature:57
.  .  .
Coverage report generated for Cucumber Features to coverage. 26144 / 51092 LOC (51.17%) covered.

ambiguous option
: -p    

Test::Unit automatic runner.
Usage

My cucumber.yml file, which I have been using for years, contains this:

prt_frmt = "--format pretty "
std_libs
= "-r features "
std_opts
= "--strict --tags ~@wip --tags ~@live_feed " +
             
"--tags ~@ignore --tags ~@hp3000"
p
:    <%= std_libs %>  <%= prt_frmt %>  <%= std_opts %>

What has changed?





:

aslak hellesoy

unread,
Feb 27, 2013, 12:10:04 PM2/27/13
to Cucumber Users
You tell me. I don't know what versions of stuff (ruby,gems) you had before and after seeing this.

Aslak
 




:

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

byrnejb

unread,
Feb 27, 2013, 12:16:42 PM2/27/13
to cu...@googlegroups.com

byrnejb

unread,
Feb 27, 2013, 12:38:10 PM2/27/13
to cu...@googlegroups.com


On Wednesday, 27 February 2013 12:10:04 UTC-5, Aslak Hellesøy wrote:


On Wed, Feb 27, 2013 at 4:06 PM, byrnejb <byr...@harte-lyne.ca> wrote:

What has changed?


You tell me. I don't know what versions of stuff (ruby,gems) you had before and after seeing this.

Aslak
 




Good point.

I only noticed the problem this morning and it seems that the message does not appear unless the cucumber run is without error.  I am beginning conversion of an existing RoR-3.1 project that has not been looked at in months to 3.2 and and the previous versions of things are quite old as the 3.1 project is itself a conversion from an earlier 2.x version.

I have removed gem references to things that seem to me to be completely unrelated but, if you desire a complete list then I will post that.


Current:

 OS = CentOS-6.3
 Ruby= 1.9.3p286

  * aruba (0.5.1)
  * bundler (1.2.4))
  * cucumber (1.2.1)
  * cucumber-rails (1.3.0)
  * database_cleaner (0.9.1)
  * diff-lcs (1.2.1)
  * email_spec (1.4.0)
  * gherkin (2.11.6)
  * nokogiri (1.5.6)
  * rails (3.2.12)
  * rake (10.0.3)
  * rspec-expectations (2.13.0)
  * selenium-webdriver (2.30.0)
  * simplecov (0.7.1)
  * simplecov-html (0.7.1)
  * spork (0.9.2)
  * sqlite3 (1.3.7)
  * test-unit (2.5.4)
  * therubyracer (0.11.4)
  * xpath (1.0.0)

Before:

OS=CentOS-6.3
Ruby=1.8.7p352

  * aruba-jbb (0.2.7.01)
  * background_process (1.3)
  * bundler (1.2.4)
  * capybara (0.4.1.2)
  * caulfield (0.0.10)
  * childprocess (0.2.2)
  * cucumber (0.10.7)
  * cucumber-rails (0.4.1)
  * database_cleaner (0.6.7)
  * email_spec (1.2.1)
  * gherkin (2.4.21)
  * highline (1.6.5)
  * hike (1.2.1)
  * rails (3.1.1)
  * rake (0.9.2.2)
  * rspec (2.7.0)
  * rspec-core (2.7.1)
  * rspec-expectations (2.7.0)
  * rspec-mocks (2.7.0)
  * rspec-rails (2.7.0)
  * ruby-debug-base19 (0.11.25)
  * ruby-debug19 (0.11.6)
  * ruby-graphviz (1.0.0)
  * test-unit (1.2.3)
  * thor (0.14.6)

byrnejb

unread,
Feb 28, 2013, 12:11:47 PM2/28/13
to cu...@googlegroups.com

This appears to be a bundler issue:

$ cucumber --backtrace -pp features/app/models/currencies/currency.feature:21
Using the p profile...
Feature: Record approved currency codes and details
.  .  .
1 scenario (1 passed)
10 steps (10 passed)
0m3.728s
Coverage report generated for Cucumber Features to /code/proforma_rails_3_2/coverage. 23441 / 48563 LOC (48.27%) covered.
$



$ bundle exec cucumber --backtrace -pp features/app/models/currencies/currency.feature:21
Using the p profile...
Feature: Record approved currency codes and details
. . .
1 scenario (1 passed)
10 steps (10 passed)
0m3.689s
Coverage report generated for Cucumber Features to /code/proforma_rails_3_2/coverage. 25237 / 51038 LOC (49.45%) covered.
invalid option
: --backtrace
Test::Unit automatic runner.
Usage: /code/proforma_rails_3_2/libexec/bundler/lib/ruby/1.9.1/bin/cucumber [options] [-- untouched arguments]
   
-r, --runner=RUNNER              Use the given RUNNER.
.  .  .
$

Do I take this to the bundler list or is this of any interest to you?


byrnejb

unread,
Mar 15, 2013, 11:51:16 AM3/15/13
to cu...@googlegroups.com


On Thursday, 28 February 2013 12:11:47 UTC-5, byrnejb wrote:

This appears to be a bundler issue:


This turned out to be an artefact of the test-unit gem and its autorun feature.  Posting this note just in case someone else runs across the same problem.
Reply all
Reply to author
Forward
0 new messages