From 9c1077841eb0747b875794eb468a3aa881f97ff5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Jan 2013 14:36:02 +0000 Subject: Adds first Capybara tests (#12822). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11270 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/testing.rake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 474a09092..cfb8e77f9 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -100,4 +100,11 @@ namespace :test do t.test_files = FileList['test/integration/routing/*_test.rb'] end Rake::Task['test:rdm_routing'].comment = "Run the routing tests" + + Rake::TestTask.new(:ui => "db:test:prepare") do |t| + t.libs << "test" + t.verbose = true + t.test_files = FileList['test/ui/**/*_test.rb'] + end + Rake::Task['test:ui'].comment = "Run the UI tests with Capybara (PhantomJS listening on port 4444 is required)" end -- cgit v1.2.3