Improving cover testenv

- Add percentage report to further analyze code-base

Change-Id: If326e95a546f6db6ec4bfe30c353c362c01c2648
This commit is contained in:
Nguyen Van Trung 2017-07-08 22:36:58 +07:00
parent e6b0f8dffb
commit 30bc6587c3
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ commands = {toxinidir}/tools/pip-install-single-req.sh test-requirements.txt hac
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='^(?!congress\.tests\.haht\.test_congress_haht.*){posargs}'
commands =
coverage erase
find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args='^(?!congress\.tests\.haht\.test_congress_haht.*){posargs}'
coverage report
[testenv:debug]
commands = oslo_debug_helper -t congress/tests {posargs}