Changes for CI improvement and generate nosetests.xml

Change-Id: Ie8f19bf284cd86a49e8879e51ff3dcb9360054d5
This commit is contained in:
Lukasz Wiecek 2017-01-31 14:52:00 +01:00
parent f7b02ef4b7
commit 03686e0bc9
2 changed files with 3 additions and 2 deletions

View File

@ -128,4 +128,5 @@ NOSE_ARGS = ['--nocapture',
'--nologcapture',
'--cover-package=monitoring',
'--cover-inclusive',
'--with-xunit',
'--all-modules']

View File

@ -319,8 +319,8 @@ function run_tests_all {
if [ $with_coverage -eq 1 ]; then
echo "Generating coverage reports"
${command_wrapper} ${COVERAGE_CMD} combine
${command_wrapper} ${COVERAGE_CMD} xml -i --omit='/usr*,setup.py,*egg*,.venv/*'
${command_wrapper} ${COVERAGE_CMD} html -i --omit='/usr*,setup.py,*egg*,.venv/*' -d reports
${command_wrapper} ${COVERAGE_CMD} xml -i --omit='monitoring/**/tests.py,monitoring/test/*,**/shiningpanda/**,/usr*,setup.py,*egg*,.venv/*'
${command_wrapper} ${COVERAGE_CMD} html -i --omit='monitoring/**/tests.py,monitoring/test/*,**/shiningpanda/**,/usr*,setup.py,*egg*,.venv/*' -d reports
fi
# Remove the leftover coverage files from the -p flag earlier.
rm -f .coverage.*