Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>Auto Unit TestsNew to Visual Studio Code? Get it now.
Auto Unit Tests

Auto Unit Tests

Paweł Stepaniuk

|
1,838 installs
| (0) | Free
Run JavaScript unit tests from VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto JS Unit Tests

Run JavaScript unit tests from VSCode

Features

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}.

Function presentation

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.

Extension Settings

You can customize the extension with these commands:

  • autoTests.testCommand: The command that will run the tests for a specific file, by default yarn test.

Release Notes

0.0.1

Initial release of Auto Unit Tests:

  • Test button has been added
  • Settings for configuration of the test command

0.0.3

  • 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

For more information

  • GitHub Page

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft