Cleanup the test settings

Karma and coverage tests scatter its result around.
And recently, infra team seems to set a subdirectory called
'cover' for coverage tests by default.

This patch accumulates their results into 'cover' subdirectory.

Change-Id: I9c32da1ffdbb2f3104d9ecd6303f1f92fc0fcda8
This commit is contained in:
Shu Muto 2016-09-15 09:53:12 +09:00
parent 48ee56ecc1
commit a256c034d0
4 changed files with 13 additions and 10 deletions

16
.gitignore vendored
View File

@ -1,17 +1,19 @@
AUTHORS
ChangeLog
build
coverage-karma
cover
doc/source/sourcecode
magnum_ui/test/.secret_key_store
node_modules
npm-debug.log
.venv
.coverage*
.jshintrc
.project
.pydevproject
.settings
.tox
*.pyc
*.lock
.venv
*.egg*
*.lock
*.pyc
*.swp
.coverage
coverage.xml
htmlcov

View File

@ -141,7 +141,7 @@ module.exports = function (config) {
// Places coverage report in HTML format in the subdirectory below.
coverageReporter: {
type: 'html',
dir: '../coverage-karma/'
dir: '../cover/karma/'
},
// Coverage threshold values.

View File

@ -28,6 +28,7 @@
"scripts": {
"postinstall": "if [ ! -d .tox ] || [ ! -d .tox/py27 ]; then tox -epy27 --notest; fi",
"lint": "eslint --no-color magnum_ui/static",
"lintq": "eslint --quiet magnum_ui/static",
"test": "karma start magnum_ui/karma.conf.js --single-run"
}
}

View File

@ -26,8 +26,8 @@ commands = {posargs}
commands =
coverage erase
coverage run {toxinidir}/manage.py test magnum_ui --settings=magnum_ui.test.settings {posargs} --exclude-dir=magnum_ui/test/integration_tests {posargs}
coverage xml --omit '.tox/cover/*'
coverage html --omit '.tox/cover/*'
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
[testenv:py27dj18]
basepython = python2.7