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>
*.egg-info/
.installed.cfg
*.egg
+cover
# PyInstaller
# Usually these files are written by a python script from a template
.installed.cfg
lib
lib64
+cover
# Installer logs
pip-log.txt
*~
.*.swp
.idea
-*.iml
\ No newline at end of file
+*.iml
[tox]
minversion = 1.6
-envlist = py27,pep8
+envlist = pep8,py27,cover
skipsdist = True
[testenv]
commands = {posargs}
[testenv:cover]
-commands = python setup.py testr --coverage --coverage-package-name=translator --testr-args='{posargs}'
+commands =
+ coverage erase
+ python setup.py test --coverage --coverage-package-name=translator --testr-args='{posargs}'
+ coverage report
[testenv:docs]
commands = python setup.py build_sphinx
.installed.cfg
lib
lib64
+cover
# Installer logs
pip-log.txt
*.iml
# OSX
-.DS_Store
\ No newline at end of file
+.DS_Store
[tox]
minversion = 2.0
-envlist = py27,pep8
+envlist = pep8,py27,cover
skipsdist = True
[testenv]
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