Repository navigation
Commit 36facdc
committed
CI: start coverage before pytest loads dandi's plugin
dandi's pytest plugin is registered as a pytest11 entry point, and
pytest loads those before pytest-cov starts measuring. The plugin
imports dandi.tests.fixtures and thus most of dandi, so all module-level
lines (imports, def/class lines, decorators) were reported as
uncovered, e.g. misctypes.py at 0% when running test_pynwb_utils.py
alone, 56.6% when measured from the start. Run pytest under
'coverage run' instead, as tox.ini already does, and combine the
parallel data files it writes (parallel = True in tox.ini) before
producing coverage.xml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr1 parent 8b6a1fc commit 36facdc
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| |||
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
171 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| |||
0 commit comments