Skip to content

Commit c00694e

Browse files
authored
Remove coverage
At the moment coverage is causing more trouble than it's worth. Codecov isn't giving meaningful results and we aren't using coverage to increase test coverage. python-ldap#349 Fixes: python-ldap#348 Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 39ea8e5 commit c00694e

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

.travis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ env:
8585
install:
8686
- pip install "pip>=7.1.0"
8787
- pip install tox-travis tox codecov
88-
# Coverage 5.0+ has issues similar to:
89-
# https://github.com/nedbat/coveragepy/issues/915
90-
- pip install "coverage<5.0"
9188

9289
script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" tox
9390

94-
after_success:
95-
# gather Python coverage
96-
- python -m coverage combine
97-
# send Python and GCOV coverage
98-
- codecov

tox.ini

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,22 @@
55

66
[tox]
77
# Note: when updating Python versions, also change setup.py and .travis.yml
8-
envlist = py27,py34,py35,py36,py37,py38,py39,{py2,py3}-nosasltls,doc,py3-trace,coverage-report
8+
envlist = py27,py34,py35,py36,py37,py38,py39,{py2,py3}-nosasltls,doc,py3-trace
99
minver = 1.8
1010

1111
[testenv]
12-
# Coverage 5.0+ has issues similar to:
13-
# https://github.com/nedbat/coveragepy/issues/915
14-
deps = coverage<5.0
12+
deps =
1513
passenv = WITH_GCOV
1614
# - Enable BytesWarning
1715
# - Turn all warnings into exceptions.
1816
commands = {envpython} -bb -Werror \
19-
-m coverage run --parallel -m unittest discover -v -s Tests -p 't_*'
17+
-m unittest discover -v -s Tests -p 't_*'
2018

2119
[testenv:py27]
2220
# No warnings with Python 2.7
2321
passenv = {[testenv]passenv}
2422
commands =
25-
{envpython} -m coverage run --parallel \
26-
-m unittest discover -v -s Tests -p 't_*'
23+
{envpython} -m unittest discover -v -s Tests -p 't_*'
2724

2825
[testenv:py34]
2926
# No warnings with Python 3.4
@@ -76,16 +73,6 @@ basepython = pypy3.5
7673
deps = {[testenv:pypy]deps}
7774
commands = {[testenv:pypy]commands}
7875

79-
[testenv:coverage-report]
80-
# Coverage 5.0+ has issues similar to:
81-
# https://github.com/nedbat/coveragepy/issues/915
82-
deps = coverage<5.0
83-
skip_install = true
84-
commands =
85-
{envpython} -m coverage combine
86-
{envpython} -m coverage report --show-missing
87-
{envpython} -m coverage html
88-
8976
[testenv:doc]
9077
basepython = python3
9178
deps =

0 commit comments

Comments
 (0)