I am using Cucumber 0.2.3 and am having problems running a single feature. In particular, the cucumber Textmate bundle was not working so I traced it back and discovered that I could not run single files or features from the command line either. My setup has the following line in cucumber.yml

default: -r features/support/env.rb -r features/support/plain.rb -r features/steps features/plain

When I run just plain cucumber from the command line, all my scenarios run and all features pass. However, if I try to run the command

cucumber -r features/support/env.rb -r features/support/plain.rb -r features/steps features/plain

OR

cucumber -r features/support/env.rb -r features/support/plain.rb -r features/steps features/plain/login.feature

I get

Failed to load features/support/env.rb from /Library/Ruby/Site/1.8/ rubygems/custom_require.rb:31:in `polyglot_original_require' from /Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ option_parser.rb:144:in `invoke_requires' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ option_parser.rb:143:in `each' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ option_parser.rb:143:in `invoke_requires' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ option_parser.rb:104:in `initialize' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/optparse.rb:1291:in `call' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/optparse.rb:1291:in `parse_in_order'
         ... 31 levels...
from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/ cli/main.rb:20:in `execute'
        from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/cucumber:6
        from /usr/bin/cucumber:19:in `load'
        from /usr/bin/cucumber:19

I'm assuming the repeated use of the -r flag is not acceptable, but I need to specify multiple files. How can I get this to work from the command line so I can also use it in Textmate?

- Mark

Mark Lynn
Sabado Technologies




_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to