Visual Studio Code Unit Test Tree View for JS
Download Visual Studio Marketplace
List of Features
Discover tests, Run specific tests, Inspect results, Debug, Open test location.
Run tests in Test Explorer
When the extension is enabled it will automatically open the Test Explorer. All tests that have been discovered will show on the Test Explorer just like on the image below
As you run, write, and rerun your tests, Test Explorer displays the results in default groups depending upon your selected group by filter.
Group By - Group Test by Outcome, Duration or File
Run tests / Debug Tests
You can run all the tests in the solution, all the tests in a group, or a set of tests that you select. Do one of the following:
View test results
As you run, write, and rerun your tests, Test Explorer is automatically updated and displays the results using color code icons. To view more details about the test just click on the test and the Test Result output pane will open showing the test results.
Show Selected Test Results
The result will be displayed on the output window
View the source code of a test method
To display the source code for a test method in the Visual Studio Code editor you only need to left click the test.
NodeJS > 6.0 for Running Mocha Tests
This extension contributes the following settings:
Mocha Related Configurations
Mocha.opts is supported but currently only --ui, --timeout and --require are respected
Fix end of debug test failure
Add CodeLens (run, debug) Add command Stop Running Tests Fix test status bug when debugger is stopped but the test was still running Refresh test explorer/Restart test explorer now clears the current list of tests Test files that are modified are now watched and test are rediscovered Listen for vscode settings changes
Fix bug for running typescript tests
Fix bug when retrieving the default settings of the mocha provider
Improve debug protocol Add command Debug All
Major changes in the protocol to exchange information between server and client Now the mocha provider is almost a fully extension plugin Configuration of the plugin is now handled by each extension. Bug fixes
0.0.4 AND 0.0.3
Release bug fixes (package missing)
Add missing skipped tests to the outcome group by view Perfomance improvements Improve how test cases run are handled (join test cases that are from the same file) Implement run all tests command Fix grep calculation bug Fix mochatestfinder bugs Cleanup
Beta Initial release
Interested in contributing to this project? Check out below the ways to contribute and make this project better.
To build the extension, run the following command from the root of the repository:
This command will create the out\src and out\test folders at the root of the repository.