Commit 669750415863f4605b6632a92a2f614d8f255746
1 parent
c3b1727d
Exists in
master
and in
23 other branches
Running selenium tests together with the rest
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
lib/tasks/test.rake
| 1 | -task :default => [:test, :cucumber] | |
| 2 | - | |
| 1 | +task :default => [:test, :cucumber, :selenium] | |
| 3 | 2 | task 'test:units' => 'noosfero:doc:build' |
| 4 | 3 | task 'test:functionals' => 'noosfero:doc:build' |
| 4 | + | |
| 5 | +task :selenium do | |
| 6 | + if ENV['DISPLAY'].blank? | |
| 7 | + puts "I: Not running selenium tests, graphical environment is not available" | |
| 8 | + else | |
| 9 | + sh 'cucumber -p selenium' | |
| 10 | + end | |
| 11 | +end | ... | ... |