diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index dfbe492..7d5241a 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -1,4 +1,11 @@ -task :default => [:test, :cucumber] - +task :default => [:test, :cucumber, :selenium] task 'test:units' => 'noosfero:doc:build' task 'test:functionals' => 'noosfero:doc:build' + +task :selenium do + if ENV['DISPLAY'].blank? + puts "I: Not running selenium tests, graphical environment is not available" + else + sh 'cucumber -p selenium' + end +end -- libgit2 0.21.2