Skip to content

Commit a900651

Browse files
committed
Gather coverage info differently.
1 parent 54d1d55 commit a900651

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ install: pip install tox-travis coveralls
77

88
script: tox
99

10-
after_success: coveralls
10+
after_success:
11+
- tox -e coverage-report
12+
- coveralls

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source = pytest_asyncio
55
show_missing = true
66

77
[tool:pytest]
8-
addopts = -rsx --tb=short --cov
8+
addopts = -rsx --tb=short
99
testpaths = tests
1010

1111
[metadata]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def find_version():
3939
],
4040
extras_require={
4141
':python_version == "3.5"': 'async_generator >= 1.3',
42-
'testing': ['pytest-cov', 'async_generator >= 1.3'],
42+
'testing': ['coverage', 'async_generator >= 1.3'],
4343
},
4444
entry_points={
4545
'pytest11': ['asyncio = pytest_asyncio.plugin'],

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ minversion = 2.5.0
44

55
[testenv]
66
extras = testing
7-
commands = python -m pytest {posargs}
7+
commands = coverage run -m pytest {posargs}
8+
9+
[testenv:coverage-report]
10+
deps = coverage
11+
skip_install = true
12+
commands =
13+
coverage combine
14+
coverage report

0 commit comments

Comments
 (0)