diff options
author | 2018-10-04 16:47:13 +0300 | |
---|---|---|
committer | 2018-10-10 10:37:19 +0000 | |
commit | 2236f9d810af0d2ef480eafbfa2abcc2b3cd932e (patch) | |
tree | 02a352f8aabcfee8a18f654b72d20919af84e43a /tox.ini | |
parent | a1cce5a9df1415309828944da3aa8a56e8f7d52e (diff) |
UT coverage report with tox and virtualenv
UT coverage report with tox and virtualenv
Change-Id: I90d6d4099e8cf43201082d5094865ee78c0bad9e
Issue-ID: SDC-1756
Signed-off-by: Betzer, Rony (rb844h) <rb844h@intl.att.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +[tox] +envlist = py35 +skipsdist = True + +[testenv] +changedir = {toxinidir}/app +envlogdir = {toxinidir}/logs + + +[testenv:py35] +basepython = python3.5 +deps = -r{toxinidir}/app/requirements.txt + coverage + +commands = python --version + coverage erase + coverage run --source {toxinidir}/app/toscalib --omit="{toxinidir}/app/toscalib/tosca*.py" -m unittest + coverage report + coverage xml + + |