Commit 08d5b3dba2a0cb7cb1595f03e4e0fffff308f16d

Authored by Antonio Terceiro
1 parent ec09b0fb

Run cucumber with `--format progress` by default

lib/tasks/cucumber.rake
... ... @@ -14,13 +14,13 @@ begin
14 14 Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
15 15 t.binary = vendored_cucumber_binary
16 16 t.fork = true # You may get faster startup if you set this to false
17   - t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
  17 + t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}"
18 18 end
19 19  
20 20 Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
21 21 t.binary = vendored_cucumber_binary
22 22 t.fork = true # You may get faster startup if you set this to false
23   - t.cucumber_opts = "--color --tags @wip:2 --wip --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
  23 + t.cucumber_opts = "--color --tags @wip:2 --wip --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}"
24 24 end
25 25  
26 26 desc 'Run all features'
... ...
lib/tasks/test.rake
... ... @@ -2,5 +2,5 @@ task :default => [:test, :cucumber, :selenium]
2 2  
3 3 desc 'Runs Seleniun acceptance tests'
4 4 task :selenium do
5   - sh "xvfb-run cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
  5 + sh "xvfb-run cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}"
6 6 end
... ...
script/ci-build
1 1 #!/bin/sh
2 2  
3   -export CUCUMBER_FORMAT=progress
4 3 cp config/database.yml.sqlite3 config/database.yml && /usr/bin/rake db:schema:load && /usr/bin/rake
... ...