Skip to content

Commit 6dfb768

Browse files
committed
Attempt to fix coverage
1 parent 4f12e75 commit 6dfb768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/travis.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ else
5555
mkdir empty
5656
cd empty
5757

58-
pytest
58+
# These environment variables ensure that the import of the pytest-trio plugin is covered
59+
# even if pytest-trio is loaded before pytest-cov. See https://pytest-cov.readthedocs.io/en/latest/plugins.html
60+
env COV_CORE_SOURCE=pytest_trio COV_CORE_CONFIG=.coveragerc COV_CORE_DATAFILE=.coverage pytest
5961

6062
bash <(curl -s https://codecov.io/bash)
6163
fi

0 commit comments

Comments
 (0)