Skip to content

Commit 6dc9239

Browse files
committed
Add diff-cover
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 8dc8d94 commit 6dc9239

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ where = src
4242
testing =
4343
covdefaults>=2
4444
coverage>=6
45+
diff-cover>=6.4
4546
pytest>=6
4647
pytest-cov>=3
4748
sphobjinv>=2

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ commands =
2727
--cov-config=setup.cfg --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
2828
--cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
2929
tests}
30+
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}{/}coverage.{envname}.xml
3031
package = wheel
3132
wheel_build_env = .pkg
3233

0 commit comments

Comments
 (0)