Skip to content

Commit c676a31

Browse files
committed
docs: add rerun on change section
1 parent 77d7e17 commit c676a31

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,18 @@ If the extension hangs, consider enabling `vitest.experimentalStaticAstCollect`
121121

122122
See <https://vitest.dev/guide/workspace.html> for monorepo support.
123123

124+
### How to rerun tests when file is changed?
125+
126+
By default, the extension doens't rerun tests when files change.
127+
128+
Click on the "eye" icon next to the test, file or a directory to enable "continuous run" for a related item. Whenever that test, file or any file in the directory changes, Vitest will rerun that test. Note that Vitest will also rerun tests if an imported module of the file is changed.
129+
130+
![Turn on continuous run button for a test](./img/eye-item-icon.png "Turn on continuous run button for a test")
131+
132+
To enabled continuous run globally, click on the "eye" icon in the "Test Explorer" row.
133+
134+
![Start continuous run button](./img/eye-global-icon.png "Start continuous run button")
135+
124136
### How to hide Test Results view when running tests
125137

126138
You can change the behaviour of testing view by modifying `testing.automaticallyOpenTestResults` option:

img/eye-global-icon.png

29.3 KB
Loading

img/eye-item-icon.png

31.9 KB
Loading

0 commit comments

Comments
 (0)