How do I run tests with a keyboard command? #22810
Answered
by
SomeoneToIgnore
thomasheartman
asked this question in
Q&A
-
What's the command to run the test you've currently got your cursor in? At least in certain languages, tests get this nice little arrow next to them: If you click it, it'll run just that test in the terminal. This is pretty nice. But I can't seem to figure out what the command is to do it. I'd rather not have to reach for the mouse. Once you've run it, you can re-run it with |
Beta Was this translation helpful? Give feedback.
Answered by
SomeoneToIgnore
Jan 8, 2025
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
thomasheartman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
task::spawn
is supposed to get this test added into the list, when the caret is on the same line(a bit hard to notice on the screenshot, but you can see the gutter highlighted due to the same line having the caret)
editor::ToggleCodeActions
on the same line will open the dropdown with the test runner action