Skip to content

Commit 2e5abc6

Browse files
authored
tests: eager config for pytest-cov (#533)
Via #412 (comment).
1 parent 48b36bb commit 2e5abc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ deps =
2828

2929
postgres: psycopg2
3030
setenv =
31-
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
31+
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
32+
33+
# Ref: https://github.com/pytest-dev/pytest-django/pull/412#issuecomment-340077539
34+
COV_CORE_SOURCE={toxinidir}
35+
COV_CORE_CONFIG={toxinidir}/.coveragerc
36+
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
3237

3338
passenv = PYTEST_ADDOPTS
3439
usedevelop = True

0 commit comments

Comments
 (0)