Skip to content

Commit c41a59a

Browse files
committed
start coverage before pytest
1 parent 919aa30 commit c41a59a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ commands =
5858
# Make sure the tests pass with and without --mpl
5959
# Use -m so pytest skips "subtests" which always apply --mpl
6060
pytest '{toxinidir}' -m "mpl_image_compare" {posargs}
61-
pytest '{toxinidir}' --mpl --cov pytest_mpl {posargs}
61+
coverage run --source=pytest_mpl -m pytest '{toxinidir}' --mpl
62+
coverage xml -o '{toxinidir}{/}coverage.xml'
6263

6364
[testenv:codestyle]
6465
skip_install = true

0 commit comments

Comments
 (0)