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:
Clark Boylan 2012-08-21 14:17:17 -07:00
parent a9604ef6b5
commit 38ecad3fda
2 changed files with 7 additions and 0 deletions

View File

@ -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=$?

View File

@ -9,6 +9,7 @@ nose
nose-exclude
nosexcover
openstack.nose_plugin
nosehtmloutput
pep8>=1.3
pylint
selenium