docs(agents): forbid database-backed tests

This commit is contained in:
sam committed 2026-10-12 01:15:19 +11:00
1 parent be594c24e9
commit 9a135a43d8
1 file changed
+2 -1
+2 -1
View File
@@ -97,7 +97,8 @@ The default for a change is no new test. Write one only when:
A test that exists must catch a real regression, survive refactoring, run fast,
and be cheap to keep. Never test wiring, constants, defaults, struct shapes,
fakes, or call order. One table-driven test per behaviour; extend the table
fakes, or call order. No test opens a real database or needs Docker; test
SQL semantics at the interceptor or domain level with fakes. One table-driven test per behaviour; extend the table
instead of adding a second test. Prefer making an invalid state unrepresentable
to testing that it is rejected. Test helpers live in `_test.go` files only.