diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2017-09-28 13:52:20 +0800 |
---|---|---|
committer | xiaodong shang <shang.xiaodong@zte.com.cn> | 2017-09-28 08:54:27 +0000 |
commit | 23206060d55f39e3e95c21aee9c80164653dc164 (patch) | |
tree | b2458bb0c6e0ca072824e4d48aa727ba37a66bc5 /tosca2heat/tosca-parser | |
parent | 4525b0dc066d17e4f7818d39801ca6b8f02aca13 (diff) |
Add coverage test item
Currently there is no coverage report, so it's necessary to add covrage
test for parser.
JIRA: PARSER-159
Change-Id: I7688b2c7e3adc8d0009e5edf33be41c7c75a5d87
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/tosca-parser')
-rw-r--r-- | tosca2heat/tosca-parser/.gitignore | 3 | ||||
-rw-r--r-- | tosca2heat/tosca-parser/tox.ini | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tosca2heat/tosca-parser/.gitignore b/tosca2heat/tosca-parser/.gitignore index c172104..2fe4959 100644 --- a/tosca2heat/tosca-parser/.gitignore +++ b/tosca2heat/tosca-parser/.gitignore @@ -17,6 +17,7 @@ develop-eggs .installed.cfg lib lib64 +cover # Installer logs pip-log.txt @@ -53,4 +54,4 @@ ChangeLog *.iml # OSX -.DS_Store
\ No newline at end of file +.DS_Store diff --git a/tosca2heat/tosca-parser/tox.ini b/tosca2heat/tosca-parser/tox.ini index 3603a18..1e27f3f 100644 --- a/tosca2heat/tosca-parser/tox.ini +++ b/tosca2heat/tosca-parser/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py27,pep8 +envlist = pep8,py27,cover skipsdist = True [testenv] @@ -19,7 +19,10 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --coverage-package-name=toscaparser --testr-args='{posargs}' +commands = + coverage erase + python setup.py test --coverage --coverage-package-name=toscaparser --testr-args='{posargs}' + coverage report [testenv:docs] commands = python setup.py build_sphinx |