From 2546d6227f91b4006abe2831e136623d048c901d Mon Sep 17 00:00:00 2001 From: Will Daly Date: Fri, 10 May 2013 10:03:44 -0400 Subject: [PATCH] Added test_acceptance command to rake file that runs all acceptance tests. --- rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rakefile b/rakefile index 32d92a0349..9fd5ea7279 100644 --- a/rakefile +++ b/rakefile @@ -243,6 +243,12 @@ def run_tests(system, report_dir, stop_on_failure=true) end end +def run_acceptance_tests(system, report_dir) + ENV['NOSE_XUNIT_FILE'] = File.join(report_dir, 'acceptance_tests.xml') + sh(django_admin(system, 'acceptance', 'harvest', '--debug-mode')) +end + + TEST_TASK_DIRS = [] task :fastlms do @@ -265,6 +271,12 @@ end run_tests(system, report_dir, args.stop_on_failure) end + # Run acceptance tests + desc "Run acceptance tests" + task "test_acceptance" => ["clean_test_files", "#{system}:gather_assets:acceptance", :predjango, report_dir] do + run_acceptance_tests(system, report_dir) + end + task :fasttest => "fasttest_#{system}" TEST_TASK_DIRS << system