You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RULES.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Every task must be tracked in `TODO.md` using the prescribed workflow to ensure
28
28
Code should be clean, minimalist, dynamic, and coherent in a self-documenting way that only requires minimal comments, with full descriptions reserved for that files's relevant .md file in /docs.
29
29
30
30
31
-
## RULE 3: Test - /test
31
+
## RULE 3: Test - /test SEE ALSO: /docs/test.md
32
32
33
33
Core principle: Test real implementations, not mocks. Tests align with Polychron's core goal to maximize dynamism and evolution.
Copy file name to clipboardExpand all lines: docs/test.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,23 @@ npm run test
138
138
npm run test:watch
139
139
```
140
140
141
+
- Debug runs (optional, heavy, and opt-in):
142
+
143
+
The repository includes diagnostic scripts that are intentionally kept separate from the default test flow to avoid slowing down everyday runs and to reduce noisy output. To enable debug-only diagnostics that may perform heavy instrumentation (for example, `scripts/debug-unit-coverage.js`), set the `DEBUG_UNIT_COVERAGE` environment variable or use the cross-platform helper script:
144
+
145
+
```bash
146
+
# Linux / macOS (env directly)
147
+
DEBUG_UNIT_COVERAGE=1 npm run test
148
+
149
+
# Cross-platform helper (works on Windows too):
150
+
npm run test:debug
151
+
```
152
+
153
+
Notes:
154
+
- The debug script `scripts/debug-unit-coverage.js` now guards itself and will no-op unless `DEBUG_UNIT_COVERAGE` is set. This prevents accidental long runs when invoked directly.
155
+
- Prefer `npm run test:debug` for a portable way to execute the full test pipeline with diagnostics enabled.
156
+
- Consider running debug diagnostics on demand or in nightly CI jobs rather than on every PR to keep CI fast and deterministic.
0 commit comments