Run JavaScript unit tests from VSCode
This extension allows running unit tests specifically for the open file directly from the Visual Studio Code with a press of one button.
A button is added in the top right corner, as marked on the image, that runs the specified command for the open file, by default yarn test ${filePath}
.
The button and context menu option for running tests is shown only for test files and folders that have test
or .spec.
in their name.
You can customize the extension with these commands:
autoTests.testCommand
: The command that will run the tests for a specific file, by defaultyarn test
.
Initial release of Auto Unit Tests:
- Test button has been added
- Settings for configuration of the test command
- Test button will be shown only for specific files (
*test*
and.spec.
in name) - Added
Run tests
to context menu for test folders and files
Enjoy!