Easier way to watch test + files for changes? #19343
-
Is there a way to run all tests in a project and re-run when a file changes that is easier than this? v watch -c test -a src/lexer/lexer.v src/lexer/lexer_test.v I've tried a few combos of the flags but this is the only one I can get working currently. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, If your project has a single It is a good idea for a future |
Beta Was this translation helpful? Give feedback.
No,
v watch
monitors the files used by a single program currently, whilev test
runs many (all found_test.v
files), and currently can not report back tov watch
what files were needed for all found test files.If your project has a single
_test.v
file however, it is a single program, even if it has many test functions in it, and you can run it withoutv test
with:v watch -c src/lexer/lexer_test.v
.It is a good idea for a future
v test
enhancement, so thatv watch -c test .
could work, without more flags needed.