Added test_acceptance command to rake file that runs

all acceptance tests.
This commit is contained in:
Will Daly
2013-05-10 10:03:44 -04:00
parent c730d43dbf
commit 2546d6227f

View File

@@ -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