File tree Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Expand file tree Collapse file tree 4 files changed +19
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ but please don't include them in your pull requests.
163
163
164
164
After this short initial setup you're ready to run tests::
165
165
166
- $ COVERAGE_PROCESS_START=`pwd`/.coveragerc COVERAGE_FILE=`pwd`/.coverage PYTHONPATH=`pwd` pytest --ds=pytest_django_test.settings_postgres
166
+ $ COVERAGE_PROCESS_START=`pwd`/pyproject.toml COVERAGE_FILE=`pwd`/.coverage PYTHONPATH=`pwd` pytest --ds=pytest_django_test.settings_postgres
167
167
168
168
You should repeat the above step for sqlite and mysql before the next step.
169
169
This step will create a lot of ``.coverage `` files with additional suffixes for
Original file line number Diff line number Diff line change @@ -36,3 +36,19 @@ module = [
36
36
" psycopg2cffi.*" ,
37
37
]
38
38
ignore_missing_imports = true
39
+
40
+ [tool .coverage .run ]
41
+ parallel = true
42
+ source = [" ${PYTESTDJANGO_COVERAGE_SRC}." ]
43
+ branch = true
44
+ [tool .coverage .report ]
45
+ include = [
46
+ " pytest_django/*" ,
47
+ " pytest_django_test/*" ,
48
+ " tests/*" ,
49
+ ]
50
+ skip_covered = true
51
+ exclude_lines = [
52
+ " pragma: no cover" ,
53
+ " if TYPE_CHECKING:" ,
54
+ ]
Original file line number Diff line number Diff line change 20
20
21
21
!pypy3-postgres: psycopg2-binary
22
22
pypy3-postgres: psycopg2cffi
23
+ coverage: coverage[toml]
23
24
coverage: coverage-enable-subprocess
24
25
25
26
pytestmin: pytest>=7.0,<7.1
@@ -35,7 +36,7 @@ setenv =
35
36
sqlite_file: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_sqlite_file
36
37
37
38
coverage: PYTESTDJANGO_TEST_RUNNER =coverage run -m pytest
38
- coverage: COVERAGE_PROCESS_START ={toxinidir}/.coveragerc
39
+ coverage: COVERAGE_PROCESS_START ={toxinidir}/pyproject.toml
39
40
coverage: COVERAGE_FILE ={toxinidir}/.coverage
40
41
coverage: PYTESTDJANGO_COVERAGE_SRC ={toxinidir}/
41
42
You can’t perform that action at this time.
0 commit comments