Press CMD+r to run tests in a VSCode terminal:
- Run test at cursor
- Run all test in the current file
- Re-run the last test run
To install:
- VSCode -> command palette -> Configure Task.. -> paste in tasks.json
- VSCode -> command palette -> Open Keyboard Shortcuts (JSON) -> paste
[
{
"key": "cmd+r",
"command": "workbench.action.tasks.runTask"
},
]
Gotchas: