Skip to content

Commit 7121f43

Browse files
committed
Fix coverage
1 parent 3e4ee99 commit 7121f43

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

.coveragerc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
[run]
1212

13+
parallel = True
14+
concurrency = multiprocessing
15+
branch = True
16+
1317
omit =
1418
# Tracked
1519

@@ -40,3 +44,27 @@ omit =
4044
*/src/dist-packages/*
4145
*/src/dist/*
4246
*/src/sdist/*
47+
48+
[report]
49+
# Regexes for lines to exclude from consideration
50+
exclude_lines =
51+
# Have to re-enable the standard pragma
52+
pragma: no cover
53+
54+
# Don't complain about missing debug-only code:
55+
def __repr__
56+
if self\.debug
57+
58+
# Don't complain if tests don't hit defensive assertion code:
59+
raise AssertionError
60+
raise NotImplementedError
61+
62+
# Don't complain if non-runnable code isn't run:
63+
if 0:
64+
if False:
65+
if __name__ == .__main__.:
66+
67+
ignore_errors = True
68+
69+
[html]
70+
directory = htmlcov

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ script:
4343
- pip check || true
4444
- pytest --version
4545
# Create GMN template database (must be done in a single threaded run)
46-
#- pytest --collect-only
46+
- pytest --collect-only
4747
# Run tests in parallel, using as many threads as are supported by Travis
48-
- pytest --cov=. --cov-report=term --cov-report=xml
48+
- pytest --cov=. --cov-config .coveragerc --cov-report=term --cov-report=xml -n auto
49+
# --cov-config=tox.ini
50+
# --cov-config=coverage.cfg --cov-report=term --cov-report=xml
4951
# -n auto
5052
after_success:
5153
# Submit results to Coveralls.io.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ paramiko==2.4.2
5858
pathlib==1.0.1
5959
pathlib2==2.3.2
6060
pbr==4.3.0
61-
pkg-resources==0.0.0
6261
pkginfo==1.4.2
6362
pluggy==0.7.1
6463
posix-ipc==1.0.4

0 commit comments

Comments
 (0)