Skip to content

Commit

Permalink
make rake cucumber work in doze
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Apr 27, 2011
1 parent 5a09ffb commit ed0d770
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -144,11 +144,12 @@ task :specs do
end
end

desc "Run features"
desc "Run all features"
task :cucumber do
cmd = "jruby "
cmd << "-J-XstartOnFirstThread " if Config::CONFIG["host_os"] =~ /darwin/
cmd << "bin/cucumber -cf progress -e \".*fixtures.*\" plugins/*/features"
all_feature_dirs = Dir['plugins/*/features'] # overcome a jruby windows bug http://jira.codehaus.org/browse/JRUBY-4527
cmd << "bin/cucumber -cf progress -e \".*fixtures.*\" #{all_feature_dirs.join(' ')}"
sh("#{cmd} && echo 'done'")
end

Expand Down

0 comments on commit ed0d770

Please sign in to comment.