Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tox.ini

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Add MANIFEST.in Created Dec. 29, 2018, 2:01 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/test_fs_source.py ('K') | « tests/test_web_source.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]
« tests/test_fs_source.py ('K') | « tests/test_web_source.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld