Skip to content

Commit a6d05db

Browse files
authored
Instruct pytest to pre-load the cov plugin early (#1791)
This is necessary because in some cases there's a race condition with xdist and loading `pytest_cov` early mitigates that.
1 parent d24075c commit a6d05db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ commands =
3232
{envpython} -m pytest \
3333
--junitxml "{toxworkdir}/junit.{envname}.xml" \
3434
{posargs:\
35+
-p pytest_cov \
3536
--cov ansiblelint \
3637
--cov "{envsitepackagesdir}/ansiblelint" \
3738
--cov-report term-missing:skip-covered \

0 commit comments

Comments
 (0)