Changes for CI improvement and generate nosetests.xml
Change-Id: Ie8f19bf284cd86a49e8879e51ff3dcb9360054d5
This commit is contained in:
parent
f7b02ef4b7
commit
03686e0bc9
@ -128,4 +128,5 @@ NOSE_ARGS = ['--nocapture',
|
||||
'--nologcapture',
|
||||
'--cover-package=monitoring',
|
||||
'--cover-inclusive',
|
||||
'--with-xunit',
|
||||
'--all-modules']
|
||||
|
@ -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.*
|
||||
|
Loading…
Reference in New Issue
Block a user