You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,11 @@ Example:
33
33
### Why not general tools
34
34
35
35
- Easy to use and remember
36
-
- Works for most python projects out of the box
36
+
- Works for most Python projects out of the box
37
37
- Uses native system monitoring API instead of polling on supported systems (see [watchdog documentation](https://python-watchdog.readthedocs.io/en/stable/installation.html#supported-platforms-and-caveats))
38
38
- Listens for new file, delete file, change and move events
39
39
- Runs your tests with latest changes in case of post-processing events (see [delay](#delay))
40
+
- Has interactive mode with handy keyboard shortcuts
Copy file name to clipboardExpand all lines: docs/index.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,11 @@ Example:
19
19
### Why not general tools
20
20
21
21
- Easy to use and remember
22
-
- Works for most python projects out of the box
22
+
- Works for most Python projects out of the box
23
23
- Uses native system monitoring API instead of polling on supported systems (see [watchdog documentation](https://python-watchdog.readthedocs.io/en/stable/installation.html#supported-platforms-and-caveats))
24
24
- Listens for new file, delete file, change and move events
25
25
- Runs your tests with latest changes in case of post-processing events (see [delay](#delay))
26
+
- Has interactive mode with handy keyboard shortcuts
You can control the actual delay value with the `--delay` flag:
105
106
106
-
`ptw . --delay 0.2`
107
+
```sh
108
+
ptw . --delay 0.2
109
+
```
107
110
108
111
To disable the delay altogether, you can set zero as a value:
109
112
110
-
`ptw . --delay 0`
113
+
```sh
114
+
ptw . --delay 0
115
+
```
116
+
117
+
### Screen clearing
118
+
119
+
Use the `--clear` flag to clear the terminal screen before each test run
120
+
121
+
```sh
122
+
ptw . --clear
123
+
```
111
124
112
125
### Differences with `pytest-watch`
113
126
114
127
Even though this project was inspired by [`pytest-watch`](https://github.com/joeyespo/pytest-watch), it's not a fork of it. Therefore, there are **differences** in behavior:
115
128
116
-
-`pytest-watch` needs you to specify a path to watch as a first argument:
129
+
-`pytest-watcher` needs you to specify a path to watch as a first argument:
117
130
118
-
```
131
+
```sh
119
132
ptw .
120
133
```
121
134
122
-
-`pytest-watch` doesn't start tests immediately by default. You can customize this behavior using `--now` flag.
135
+
-`pytest-watcher` doesn't start tests immediately by default. You can customize this behavior using `--now` flag.
123
136
124
137
## Configuring
125
138
@@ -128,6 +141,7 @@ You can configure `pytest-watcher` via `pyproject.toml` file. Here is the defaul
0 commit comments