Commit ff05f08
committed
docs: update testing guide with parallel execution best practices
Update the testing guide to document the new parallel test execution
strategy and best practices for maintaining test isolation.
Major additions:
- New "Parallel Test Execution" section explaining default behavior
- Worker configuration and distribution strategies
- Performance benchmarks (5 min parallel vs 15+ min sequential)
- Coverage achievement documentation (86% achieved, exceeds 85% target)
- When to use parallel vs sequential execution
New "Test Isolation & Parallel Execution" section:
- File-level isolation with loadfile strategy explained
- Test independence requirements documented
- Global state management patterns described
- Debugging guidance for parallel execution issues
Updated sections:
- Quick Commands: Add parallel execution examples and timing info
- Advanced Testing: Add parallel worker customization options
- Coverage Goals: Update to show 86% achievement status
- Command examples: Clarify parallel execution is default
Updated command examples to reflect parallel-first approach:
```bash
# Default parallel execution (recommended)
uv run pytest
# Sequential execution (for debugging)
uv run pytest -n 0
# Customize workers
uv run pytest -n 4
```
The guide now reflects the production-ready test infrastructure with
100% test pass rate in parallel execution and provides clear guidance
for developers on when and how to use different test execution modes.
Developers can now:
- Understand why tests run in parallel by default
- Know when to use sequential execution for debugging
- Customize worker count for their development environment
- Understand test isolation requirements and patterns1 parent af74243 commit ff05f08
1 file changed
Lines changed: 95 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
216 | 242 | | |
217 | 243 | | |
218 | 244 | | |
| |||
255 | 281 | | |
256 | 282 | | |
257 | 283 | | |
258 | | - | |
| 284 | + | |
259 | 285 | | |
| 286 | + | |
| 287 | + | |
260 | 288 | | |
261 | | - | |
| 289 | + | |
262 | 290 | | |
263 | 291 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
267 | 295 | | |
268 | | - | |
| 296 | + | |
269 | 297 | | |
270 | 298 | | |
271 | | - | |
| 299 | + | |
272 | 300 | | |
273 | 301 | | |
274 | 302 | | |
275 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
276 | 307 | | |
277 | 308 | | |
278 | 309 | | |
| |||
281 | 312 | | |
282 | 313 | | |
283 | 314 | | |
284 | | - | |
285 | | - | |
| 315 | + | |
| 316 | + | |
286 | 317 | | |
287 | | - | |
288 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
289 | 326 | | |
290 | 327 | | |
291 | 328 | | |
292 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
293 | 334 | | |
294 | 335 | | |
295 | 336 | | |
| |||
432 | 473 | | |
433 | 474 | | |
434 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
435 | 516 | | |
436 | 517 | | |
437 | 518 | | |
| |||
0 commit comments