Improving cover testenv

- Add coverage report to analyze code.

Change-Id: I46d3e6abe0a2b2e39db80ff399fcd53d35d1d577
This commit is contained in:
Nguyen Van Trung 2017-06-16 11:33:58 +07:00
parent f7e8a71b02
commit 6725ea21f6
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ commands = rm -rf doc/build
sphinx-build -E -W -b html doc/source doc/build/html
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
commands =
coverage erase
find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt