Skip to content

Commit 9544c23

Browse files
committed
ai(rules[AGENTS]): add functional-only test style guideline
1 parent 527c292 commit 9544c23

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ These fixtures handle setup and teardown automatically, creating isolated test e
152152

153153
For running tests with actual VCS commands, tests will be skipped if the corresponding VCS binary is not installed.
154154

155+
### Testing Guidelines
156+
157+
1. **Use functional tests only**: Write tests as standalone functions (`test_*`), not classes. Avoid `class TestFoo:` groupings - use descriptive function names and file organization instead. This applies to pytest tests, not doctests.
158+
155159
### Example Fixture Usage
156160

157161
```python

0 commit comments

Comments
 (0)