Commit bf2cbbd3dc1867b9aecf86a721f19701191c9909
1 parent
aece445a
Exists in
master
and in
20 other branches
Fix behaviour of `rake`
For some bizarre reason no tests would run when the :cucumber task is added as a dependency of :default (??). Also let's stop messing with the dependencies of the test task; the task to run all tests (as in ci.noosfero.org) is now ci:full
Showing
2 changed files
with
1 additions
and
11 deletions
Show diff stats
lib/tasks/cucumber.rake
lib/tasks/test.rake
1 | -t = Rake::Task[:test] | |
2 | -if t.respond_to?(:clear) | |
3 | - t.clear | |
4 | -else | |
5 | - t.prerequisites.clear | |
6 | - t.instance_variable_get('@actions').clear | |
7 | -end | |
8 | - | |
9 | 1 | desc 'Runs Seleniun acceptance tests' |
10 | 2 | task :selenium do |
11 | 3 | sh "xvfb-run -a cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" |
... | ... | @@ -16,7 +8,7 @@ CucumberTasks = %w(cucumber selenium) |
16 | 8 | NoosferoTasks = %w(test:noosfero_plugins) |
17 | 9 | AllTasks = TestTasks + CucumberTasks + NoosferoTasks |
18 | 10 | |
19 | -task :test do | |
11 | +task 'ci:full' do | |
20 | 12 | data = [] |
21 | 13 | failed = [] |
22 | 14 | AllTasks.each do |task| | ... | ... |