| Index: tox.ini |
| =================================================================== |
| --- a/tox.ini |
| +++ b/tox.ini |
| @@ -1,25 +1,19 @@ |
| [tox] |
| -envlist = py27,py35,py36,pypy,coverage,flake8 |
| +envlist = py27,py35,py36,pypy,flake8 |
| [flake8] |
| ignore = D107, N801, W503 |
| [testenv] |
| deps = |
| - pytest |
| - mock |
| -commands = |
| - py.test tests |
| - |
| -[testenv:coverage] |
| -deps = |
| pytest-cov |
| mock |
| commands = |
| - py.test --cov=abp --cov-report=term-missing tests |
| + python -c 'import sys; open(".coveragerc", "w").write("[report]\nexclude_lines = pragma: no py\{\} cover".format(sys.version_info[0]))' |
|
Vasily Kuznetsov
2019/01/02 18:32:28
This is clever but I wonder if it would look less
Sebastian Noack
2019/01/02 20:42:31
There are following problems with this approach:
rhowell
2019/01/03 04:42:28
I briefly tried using tox environment variables, b
|
| + py.test --cov=abp --cov-report=term-missing --cov-fail-under=100 tests |
| -# We have to install our package in development mode |
| -# so that pytest-cov can find the .coverage file. |
| +# We have to install our package in development mode so that pytest-cov can |
| +# find the .coverage and .coveragerc files. |
| usedevelop = true |
| [testenv:flake8] |