Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0fa082d

Browse filesBrowse files
committed
cursor(rules[dev-loop]) add pytest-watcher commands for continuous testing
1 parent 8694d26 commit 0fa082d
Copy full SHA for 0fa082d

File tree

Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed

‎.cursor/rules/dev-loop.mdc

Copy file name to clipboardExpand all lines: .cursor/rules/dev-loop.mdc
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ Verify that your changes pass the tests:
2121
uv run py.test
2222
```
2323

24+
For continuous testing during development, use pytest-watcher:
25+
26+
```
27+
# Watch all tests
28+
uv run ptw .
29+
30+
# Watch and run tests immediately, including doctests
31+
uv run ptw . --now --doctest-modules
32+
33+
# Watch specific files or directories
34+
uv run ptw . --now --doctest-modules src/libtmux/_internal/
35+
```
36+
2437
## 3. Commit Initial Changes
2538

2639
Make an atomic commit for your changes using conventional commits.
@@ -126,3 +139,9 @@ For doctests in `src/**/*.py` files:
126139
4. **Keep doctests simple and focused** on demonstrating usage rather than comprehensive testing.
127140

128141
5. **Add blank lines between test sections** for improved readability.
142+
143+
6. **Test your doctests continuously** using pytest-watcher during development:
144+
```
145+
# Watch specific modules for doctest changes
146+
uv run ptw . --now --doctest-modules src/path/to/module.py
147+
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.