Permalink
Browse files

Configure Rake to run Cucumber with progress output, as it does RSpec

  • Loading branch information...
njonsson committed Nov 15, 2013
1 parent d1e5c66 commit c8e93e33ec8bc86951d92686a9df7e4742594e2d
Showing with 4 additions and 3 deletions.
  1. +4 −3 Rakefile
View
@@ -27,15 +27,16 @@ tags = `grep -Ehr "^\\s*@\\S+\\s*$" features`.split("\n").
uniq.
sort
options = {:desc => 'Test features'}
-options[:cucumber_opts] = '-t @focus' if tags.delete('@focus')
+options[:cucumber_opts] = '--format progress'
+options[:cucumber_opts] += ' --tags @focus' if tags.delete('@focus')
define_features_task :features, options
unless tags.empty?
namespace :features do
tags.each do |t|
define_features_task t.gsub(/^@/, ''),
:desc => "Test features tagged #{t}",
- :cucumber_opts => "-t #{t}"
+ :cucumber_opts => "--tags #{t}"
end
end
end
@@ -84,7 +85,7 @@ namespace :test do
Cucumber::Rake::Task.new :features, '' do |t|
t.bundler = false
- t.cucumber_opts = '--backtrace'
+ t.cucumber_opts = '--backtrace --format progress'
end
end
task :test => %w(test:spec test:features)

0 comments on commit c8e93e3

Please sign in to comment.