Skip to content

Commit ab7ceb8

Browse files
committed
Fix coverage report
1 parent f13c14c commit ab7ceb8

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ include =
33
src/*
44
*/lib/python*/site-packages/pytest_xray/*
55
*\Lib\site-packages\pytest_xray\*
6-
parallel = 1
6+
; FIXME: it shows wrong coverage report
7+
; parallel = true
78

89
[paths]
910
source = src/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ lint = [
4040
"types-requests>=2.32.4.20250913",
4141
]
4242
test = [
43-
"pytest-cov>=7.0.0",
43+
"coverage>=7.10.0",
4444
"pytest-httpserver>=1.1.3",
4545
"pytest-xdist>=3.8.0",
4646
]

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest-cov>=7.0.0
1+
coverage>=7.10.0
22
pytest-httpserver>=1.1.3
33
pytest-xdist>=3.8.0

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ distshare = {homedir}/.tox/distshare
77
[testenv]
88
deps = -rrequirements-tests.txt
99
commands =
10-
pytest tests -v {env:_TOX_COVERAGE_RUN:} {posargs:}
10+
{env:_TOX_COVERAGE_RUN:} pytest tests -v {posargs:}
11+
coverage: coverage report -m
1112
setenv =
12-
coverage: _TOX_COVERAGE_RUN=--cov --junitxml=junit.xml -o junit_family=legacy
13+
coverage: _TOX_COVERAGE_RUN=coverage run -m
1314
coverage: COVERAGE_FILE={toxinidir}/.coverage
1415
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
1516

0 commit comments

Comments
 (0)