Do RM 3.1.1 and Spork and Cucumber work now?

From the various threads and issues I have read it appears they should but I am still getting the error:

/Users/JP/.rvm/rubies/ruby-1.9.2-head/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/JP/Dev/twitter_lists/script/cucumber /Users/JP/Dev/twitter_lists/features/selections.feature --format Teamcity::Cucumber::Formatter --expand --name Create\ a\ selection --color
Testing started at 19:30 ...
Using the default profile...
Disabling profiles...
Exception encountered: #<RuntimeError: All but one formatter must use --out, only one can print to each stream (or STDOUT)>



If they are supposed to work now I'll post versions etc and continue investigating, if not I guess it is back to iterm which will be a shame.

TIA
0
4 comments

no it doesn't, uf
i switched back to terminal / watchr
its a never ending story.

Check out those two articles

http://chrismdp.github.com/2010/11/getting-spork-working-now-on-rails-3-rspec-2-and-cucumber/
https://gist.github.com/903664

0

Thanks Rafael,
Great links too. I keep flipping between texmate/iterm and Rubymine. Getting testing to work properly in Rubymine would be the final push for me to stick with it. Have the devs got any comments?

0

Thanks for the reply Roman,
Looking at the 2 links you posted I have spent some time but still canot get this to work.

I started a new project with Rails 3.0.7, Cucumber 0.10.2, and Spork 0.8.4. I have one simple scenario that passes without spork running.

When I run Spork from Tools > Run SPork DRb Server and rerun the scenario I get the exception "RuntimeError: All but one formatter must use --out..."

This looks like the issue in http://devnet.jetbrains.net/message/5300866#5300866 where the initial advice is to edit the cucumber config but toward the end you say that it is running fine for you with the default config.

My Config is:

<%
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"
%>
default: --drb <%= std_opts %> features
wip: --drb --tags @wip:3 --wip features
rerun: --drb <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip



Which is the same as yours with the addition of the --drb tags. Could you confirm it should work with the default cucumber config now?

Thanks
0

Please sign in to leave a comment.