Index: tox.ini |
=================================================================== |
--- a/tox.ini |
+++ b/tox.ini |
@@ -1,5 +1,5 @@ |
[tox] |
-envlist = py27,py35,py36,pypy,coverage,flake8 |
+envlist = py27,py35,py36,pypy,coverage2,coverage3,flake8 |
[flake8] |
ignore = D107, N801, W503 |
@@ -11,16 +11,27 @@ |
commands = |
py.test tests |
-[testenv:coverage] |
+# We have to install our package in development mode so that pytest-cov can |
+# find the .coverage and .coveragerc files. |
+usedevelop = true |
+ |
+[testenv:coverage2] |
+basepython = python2 |
+setenv = PY_VER = 2 |
deps = |
pytest-cov |
mock |
commands = |
py.test --cov=abp --cov-report=term-missing tests |
-# We have to install our package in development mode |
-# so that pytest-cov can find the .coverage file. |
-usedevelop = true |
+[testenv:coverage3] |
Sebastian Noack
2018/12/28 00:22:51
What's the point of using a separate environment f
rhowell
2018/12/28 21:50:08
By default, tox only checks coverage for the versi
Sebastian Noack
2018/12/28 22:39:02
If you just run coverage reports for every environ
rhowell
2018/12/29 01:30:51
Done.
|
+basepython = python3 |
+setenv = PY_VER = 3 |
+deps = |
+ pytest-cov |
+ mock |
+commands = |
+ py.test --cov=abp --cov-report=term-missing tests |
[testenv:flake8] |
basepython = python3 |