Skip to content

Commit 8695aa9

Browse files
authored
docs: add AGENTS.md and testing anti-patterns section (#465)
* docs: add AGENTS.md and testing anti-patterns section * docs: fix lint and formatting
1 parent d69db93 commit 8695aa9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Agents
2+
3+
## Useful Resources
4+
5+
- [TESTING.md](TESTING.md)
6+
- [CONTRIBUTING.md](CONTRIBUTING.md)

TESTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ Stream delivery tests fail in CI unless `MEMORY_KINESIS_ARN` and `MEMORY_ROLE_AR
8787
- Each test class should correspond to the object under test (e.g. `TestMemoryClient`).
8888
- Expensive resources (e.g. memories) should be created the minimum number of times, ideally once in `setup_class`.
8989
- All resources created during tests must be cleaned up in `teardown_class`.
90+
91+
## Anti-Patterns
92+
93+
**Excessive mocking.** Over-mocking weakens correctness guarantees and couples tests to implementation details. Functionality that requires mocking should have integration or e2e test coverage.

0 commit comments

Comments
 (0)