Commit 2546d622 by Will Daly

Added test_acceptance command to rake file that runs

all acceptance tests.
parent c730d43d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment