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: Address comment on PS5 Created Jan. 3, 2019, 9:32 p.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
« no previous file with comments | « 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,21 @@
[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
+ # For accurate coverage reports, we write a `pragma: no py{}` instruction
+ # containing the current Python version to a .coveragerc file
+ python -c 'import sys; open(".coveragerc", "w").write("[report]\nexclude_lines = pragma: no py\{\} cover".format(sys.version_info[0]))'
+ 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]
« no previous file with comments | « tests/test_web_source.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld