Skip to content

Commit a5bdb31

Browse files
shivsubhnemesifier
authored andcommitted
[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 #677
1 parent 33bbd55 commit a5bdb31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
env:
9595
SELENIUM_HEADLESS: 1
9696
GECKO_LOG: 1
97+
COVERAGE_PROCESS_START: pyproject.toml
9798

9899
- name: Show gecko web driver log on failures
99100
if: ${{ failure() }}

0 commit comments

Comments
 (0)