Skip to content

Commit 37119e3

Browse files
committed
docs(agents): clarify behavior-based test splits
1 parent e4a22b5 commit 37119e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/agents/test-authoring.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ For command behavior, prefer provider-backed integration through the real reques
1414
For native behavior, use the owning E2E lane.
1515
For pure logic, types, or exhaustive cases, use focused tests.
1616
If an existing scenario covers the regression, extend it.
17-
At each boundary, assert the contract that boundary owns.
1817
Do not add test-only production exports or dependency injection.
1918
Without the fix, a regression test must fail for the intended reason.
2019
Use [isolated experiments](test-experiments.md).
@@ -51,7 +50,8 @@ Do not add unit retries to hide failures.
5150
Use existing clocks or tool seams instead of production-time waits.
5251
Slow-test pins only shrink.
5352
For a new pin, give measured justification.
54-
Split tests only with their source module.
53+
Split tests by behavior.
54+
Keep split files beside their source module.
5555
Import the subject module, not a platform barrel.
5656

5757
## Run a focused test

0 commit comments

Comments
 (0)