Skip to content

Commit f1b7dd0

Browse files
committed
docs: add per-file test coverage table to Testing section
1 parent c6b0ec2 commit f1b7dd0

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,26 @@ pytest tests/ # 208 tests, 0 warnings
313313
ruff check src/ tests/ # Lint (all checks pass)
314314
```
315315

316-
The test suite covers all diagnostic modules, the test runner, JUnit/Prometheus output, run level configuration, and telemetry checks. `PytestCollectionWarning` suppression is configured in `pyproject.toml`.
316+
| Test File | Items | Coverage |
317+
|-----------|------:|---------|
318+
| `test_production.py` | 23 | Prometheus metrics exposition format, `/metrics` and `/health` HTTP endpoints |
319+
| `test_telemetry.py` | 22 | XID error detection, clock throttle reason classification, ECC error counters |
320+
| `test_pcie_validation_diag.py` | 14 | PCIe gen/width/replay detection, degradation summary |
321+
| `test_history.py` | 14 | JSONL run persistence, newest-first ordering, `--failures` filter, malformed line handling |
322+
| `test_fault_injection.py` | 30 | 5 fault types × parametrize — FAIL status, `DIAG-FI-*` prefix, injected flag, no collision with real codes |
323+
| `test_stress.py` | 12 | Compute stress, SM saturation |
324+
| `test_runner.py` | 12 | Test orchestration, result aggregation |
325+
| `test_run_levels.py` | 12 | quick / medium / long / extended level configuration |
326+
| `test_interconnect.py` | 12 | NVLink P2P, topology mapping |
327+
| `test_gpu_health.py` | 12 | Temperature, power, VRAM availability, clock responsiveness |
328+
| `test_deployment.py` | 12 | Driver load, GPU count/model/ECC, unique DIAG-001–004 codes, nvml session lifecycle |
329+
| `test_bandwidth.py` | 12 | Host-to-device, device-to-host, and memory triad bandwidth |
330+
| `test_memory_test.py` | 10 | VRAM allocation, pattern verification |
331+
| `test_cli.py` | 7 | `monitor` KeyboardInterrupt handling, `history` rendering and flag filters |
332+
| `test_pcie_validation.py` | 4 | PCIe link speed/width pass/fail cases |
333+
| **Total** | **208** | |
334+
335+
`PytestCollectionWarning` suppression is configured in `pyproject.toml`.
317336

318337
---
319338

0 commit comments

Comments
 (0)