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
{{ message }}
Repository navigation
Commit 9a08cc2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,13 @@ This project uses private design documents under `.notes/` as implementation ref
60
60
- Allow the design docs to be reviewed by subagents when see fit.
61
61
- Propose improvements when see fit.
62
62
63
+
## Testing
64
+
65
+
- Never write unit tests after you write code.
66
+
- Highly prefer E2E tests as the sole testing mechanism. Use them to verify complex features work (spawn the real CLI, boot the real runtime, hit the real provider or sandbox).
67
+
- At the end of an E2E test, produce a verifiable and repeatable artifact under `__artifacts__/` (e.g. a path-normalised `toMatchFileSnapshot("./__artifacts__/<name>.json")` that fails on drift and regenerates with `-u`). Do not use `__snapshots__/`.
68
+
- If you must test a system in isolation, first write down all the ways it could fail, then write the code. Only keep an isolated test if it catches a real bug the E2E tests miss (wire-protocol parsing, OAuth refresh, cancellation/concurrency, data integrity, security boundaries).
69
+
63
70
## Task Completion Requirements
64
71
65
72
-`vp check` and `vp run typecheck` must pass before considering tasks completed, unless otherwise specified.
Copy file name to clipboardExpand all lines: CLAUDE.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,13 @@ This project uses private design documents under `.notes/` as implementation ref
60
60
- Allow the design docs to be reviewed by subagents when see fit.
61
61
- Propose improvements when see fit.
62
62
63
+
## Testing
64
+
65
+
- Never write unit tests after you write code.
66
+
- Highly prefer E2E tests as the sole testing mechanism. Use them to verify complex features work (spawn the real CLI, boot the real runtime, hit the real provider or sandbox).
67
+
- At the end of an E2E test, produce a verifiable and repeatable artifact under `__artifacts__/` (e.g. a path-normalised `toMatchFileSnapshot("./__artifacts__/<name>.json")` that fails on drift and regenerates with `-u`). Do not use `__snapshots__/`.
68
+
- If you must test a system in isolation, first write down all the ways it could fail, then write the code. Only keep an isolated test if it catches a real bug the E2E tests miss (wire-protocol parsing, OAuth refresh, cancellation/concurrency, data integrity, security boundaries).
69
+
63
70
## Task Completion Requirements
64
71
65
72
-`vp check` and `vp run typecheck` must pass before considering tasks completed, unless otherwise specified.
0 commit comments