diff --git a/run_tests.sh b/run_tests.sh index 3dbbbd366e..2c5d28e4ed 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -271,6 +271,9 @@ function run_tests { echo "Running Horizon application tests" export NOSE_XUNIT_FILE=horizon/nosetests.xml + if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then + export NOSE_HTML_OUT_FILE='horizon_nose_results.html' + fi ${command_wrapper} coverage erase ${command_wrapper} coverage run -p $root/manage.py test horizon --settings=horizon.tests.testsettings $testargs # get results of the Horizon tests @@ -278,6 +281,9 @@ function run_tests { echo "Running openstack_dashboard tests" export NOSE_XUNIT_FILE=openstack_dashboard/nosetests.xml + if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then + export NOSE_HTML_OUT_FILE='dashboard_nose_results.html' + fi ${command_wrapper} coverage run -p $root/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings $testargs # get results of the openstack_dashboard tests DASHBOARD_RESULT=$? diff --git a/tools/test-requires b/tools/test-requires index db1a18d69e..8b4f0a0e0c 100644 --- a/tools/test-requires +++ b/tools/test-requires @@ -9,6 +9,7 @@ nose nose-exclude nosexcover openstack.nose_plugin +nosehtmloutput pep8>=1.3 pylint selenium