From 669750415863f4605b6632a92a2f614d8f255746 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 8 Feb 2010 18:59:31 -0300 Subject: [PATCH] Running selenium tests together with the rest --- lib/tasks/test.rake | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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