1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/690ea2dc6cab/ Changeset: 690ea2dc6cab User: jmchilton Date: 2014-12-06 05:14:20+00:00 Summary: Add --xunit_report_file option to run_tests.sh. If supplied - python based tests will output a xunit style test to the specified file. Affected #: 1 file diff -r 34ed52176b054166d687c3a402391f0d40f339db -r 690ea2dc6cab18cdacfcd59ba0e5c2178df2bff4 run_tests.sh --- a/run_tests.sh +++ b/run_tests.sh @@ -46,6 +46,7 @@ test_script="./scripts/functional_tests.py" report_file="run_functional_tests.html" +xunit_report_file="" with_framework_test_tools_arg="" driver="python" @@ -146,6 +147,15 @@ exit 1 fi ;; + --xunit_report_file) + if [ $# -gt 1 ]; then + xunit_report_file=$2 + shift 2 + else + echo "--xunit_report_file requires an argument" 1>&2 + exit 1 + fi + ;; -c|--coverage) # Must have coverage installed (try `which coverage`) - only valid with --unit # for now. Would be great to get this to work with functional tests though. @@ -234,7 +244,12 @@ fi if [ "$driver" = "python" ]; then - python $test_script $coverage_arg -v --with-nosehtml --html-report-file $report_file $with_framework_test_tools_arg $extra_args + if [ -n "$xunit_report_file" ]; then + xunit_args="--with-xunit --xunit-file $xunit_report_file" + else + xunit_args="" + fi + python $test_script $coverage_arg -v --with-nosehtml --html-report-file $report_file $xunit_args $with_framework_test_tools_arg $extra_args else ensure_grunt if [ -n "$watch" ]; then Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.