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
Coming from elixir I'm very used to running tests with mix test path/to/file_test.exs or mix test path/to/file_test.exs:20. That's very convenient to setup with an editor to have keyboard shortcuts to trigger either of them relative to where my cursor currently sits, which allows for a very rapid workflow between making changes and running tests.
vitest currently only offers test filtering by pattern, which doesn't really seem to support this usecase. Manually coming up and typing out the correct filter conditions is much more tedious.
Suggested solution
Have a CLI frag, which can receives a path. For a directory execute all test files in that directory, for a file path just that single file and potentially also be able to execute just the test at line 12 with path/to/file.test.js:12.
Clear and concise description of the problem
Coming from elixir I'm very used to running tests with
mix test path/to/file_test.exs
ormix test path/to/file_test.exs:20
. That's very convenient to setup with an editor to have keyboard shortcuts to trigger either of them relative to where my cursor currently sits, which allows for a very rapid workflow between making changes and running tests.vitest currently only offers test filtering by pattern, which doesn't really seem to support this usecase. Manually coming up and typing out the correct filter conditions is much more tedious.
Suggested solution
Have a CLI frag, which can receives a path. For a directory execute all test files in that directory, for a file path just that single file and potentially also be able to execute just the test at line 12 with
path/to/file.test.js:12
.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: