summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator
diff options
context:
space:
mode:
Diffstat (limited to 'tosca2heat/heat-translator')
-rw-r--r--tosca2heat/heat-translator/.gitignore3
-rw-r--r--tosca2heat/heat-translator/tox.ini7
2 files changed, 7 insertions, 3 deletions
diff --git a/tosca2heat/heat-translator/.gitignore b/tosca2heat/heat-translator/.gitignore
index 7dfa8ae..05b67b1 100644
--- a/tosca2heat/heat-translator/.gitignore
+++ b/tosca2heat/heat-translator/.gitignore
@@ -17,6 +17,7 @@ develop-eggs
.installed.cfg
lib
lib64
+cover
# Installer logs
pip-log.txt
@@ -50,4 +51,4 @@ ChangeLog
*~
.*.swp
.idea
-*.iml \ No newline at end of file
+*.iml
diff --git a/tosca2heat/heat-translator/tox.ini b/tosca2heat/heat-translator/tox.ini
index 6ba58c3..447eb6e 100644
--- a/tosca2heat/heat-translator/tox.ini
+++ b/tosca2heat/heat-translator/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 1.6
-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=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