summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorGuido A.J. Stevens <guido.stevens@cosent.nl>2018-01-25 09:18:03 +0000
committerGuido A.J. Stevens <guido.stevens@cosent.nl>2018-01-25 09:18:03 +0000
commit9cd831783921c6b2e3efe286fd6689cf788b0393 (patch)
tree539f6f694c8915a142f6c01afbde1ada00313382 /tox.ini
parent828ff0289642a95ec00fe4f9a55da51c455277c8 (diff)
downloadpython-magic-9cd831783921c6b2e3efe286fd6689cf788b0393.tar.gz
Provide tox runner
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini36
1 files changed, 36 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..25fc15b
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,36 @@
+[tox]
+envlist =
+ coverage-clean,
+ py27,
+ py36,
+ coverage-report
+
+
+[testenv]
+commands =
+ coverage run --source=magic setup.py test
+
+setenv =
+ COVERAGE_FILE=.coverage.{envname}
+deps =
+ .[test]
+ zope.testrunner
+ coverage
+
+[testenv:coverage-clean]
+deps = coverage
+setenv =
+ COVERAGE_FILE=.coverage
+skip_install = true
+commands = coverage erase
+
+[testenv:coverage-report]
+deps = coverage
+setenv =
+ COVERAGE_FILE=.coverage
+skip_install = true
+commands =
+ coverage combine
+ coverage report
+ coverage html
+ coverage