Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its results to an html file. This will be used by Jenkins to save logs on a different server. Make slight modification to run_tests.sh in order to output the nose test results to two different html files. One for Horizon and one for the dashboard. Change-Id: Ic1ed086b24705d0f2bca07f8e921646532e46c3b
This commit is contained in:
@@ -271,6 +271,9 @@ function run_tests {
|
|||||||
|
|
||||||
echo "Running Horizon application tests"
|
echo "Running Horizon application tests"
|
||||||
export NOSE_XUNIT_FILE=horizon/nosetests.xml
|
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 erase
|
||||||
${command_wrapper} coverage run -p $root/manage.py test horizon --settings=horizon.tests.testsettings $testargs
|
${command_wrapper} coverage run -p $root/manage.py test horizon --settings=horizon.tests.testsettings $testargs
|
||||||
# get results of the Horizon tests
|
# get results of the Horizon tests
|
||||||
@@ -278,6 +281,9 @@ function run_tests {
|
|||||||
|
|
||||||
echo "Running openstack_dashboard tests"
|
echo "Running openstack_dashboard tests"
|
||||||
export NOSE_XUNIT_FILE=openstack_dashboard/nosetests.xml
|
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
|
${command_wrapper} coverage run -p $root/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings $testargs
|
||||||
# get results of the openstack_dashboard tests
|
# get results of the openstack_dashboard tests
|
||||||
DASHBOARD_RESULT=$?
|
DASHBOARD_RESULT=$?
|
||||||
|
@@ -9,6 +9,7 @@ nose
|
|||||||
nose-exclude
|
nose-exclude
|
||||||
nosexcover
|
nosexcover
|
||||||
openstack.nose_plugin
|
openstack.nose_plugin
|
||||||
|
nosehtmloutput
|
||||||
pep8>=1.3
|
pep8>=1.3
|
||||||
pylint
|
pylint
|
||||||
selenium
|
selenium
|
||||||
|
Reference in New Issue
Block a user