Commit a5bdb31
[ci] Fixed missing coverage data in parallel tests #677
Running Django tests using the --parallel flag spawns multiple worker subprocesses. By default, coverage.py running in the main process does not trace the code executed inside these worker processes, which leads to an incomplete coverage report.
Setting the COVERAGE_PROCESS_START environment variable in the CI workflow natively instructs coverage.py to initialize itself and gather coverage data within all the newly spawned multiprocessing child processes according to the configurations defined in pyproject.toml.
Fixes #6771 parent 33bbd55 commit a5bdb31
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments