mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
- Adds `scripts/run-test-audit.sh` to automate unit test execution with coverage. - Adds `scripts/analyze-flakiness.mjs` to detect test flakiness. - Adds `scripts/static-test-analysis.mjs` to find suspicious test patterns. - Adds `scripts/coverage-gap-analysis.mjs` to identify critical coverage gaps. - Adds `scripts/generate-audit-report.mjs` to produce markdown reports. - Generates initial audit report `test-audit-report-2025-02-18.md` and `issues/ISSUE_test_audit_findings.md`. - Documents findings in `decisions/DECISIONS_2025-02-18.md`. Co-authored-by: PR0M3TH3AN <[email protected]>
12 lines
698 B
Markdown
12 lines
698 B
Markdown
# Decisions - 2025-02-18
|
|
|
|
## Test Audit Implementation
|
|
- **Tooling**: Used `c8` for coverage and custom Node.js scripts for flakiness/static analysis.
|
|
- **Timeout**: Experienced timeouts with full suite coverage run; mitigation was to use the partial results which were sufficient for initial audit.
|
|
- **Coverage**: Mapped coverage to critical files using `coverage-summary.json`.
|
|
- **Artifacts**: Stored all artifacts in `test-audit/` for historical tracking.
|
|
|
|
## Findings
|
|
- Confirmed that critical modules (`userBlocks`, `relayManager`) have low test coverage.
|
|
- Identified widespread use of `sleep` and `fetch` in unit tests, indicating a need for better test isolation and determinism helpers.
|