Visual Studio Code Unit Test Tree View for JSDownload Visual Studio Marketplace SectionsList of Features Quick OverviewDiscover tests, Run specific tests, Inspect results, Debug, Open test location. FeaturesRun tests in Test ExplorerWhen 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 TestsYou 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 resultsAs 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 methodTo display the source code for a test method in the Visual Studio Code editor you only need to left click the test. RequirementsNodeJS > 6.0 for Running Mocha Tests Extension SettingsThis extension contributes the following settings:
Plugin Configurations
Mocha Related Configurations
Known IssuesMocha.opts is supported but currently only --ui, --timeout and --require are respected Release Notes0.3.1Fix end of debug test failure 0.3.0Add 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 0.2.2Fix bug for running typescript tests 0.2.1Fix bug when retrieving the default settings of the mocha provider 0.2.0Improve debug protocol Add command Debug All 0.1.0Major 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.3Release bug fixes (package missing) 0.0.2Add 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 0.0.1Beta Initial release ContributeInterested in contributing to this project? Check out below the ways to contribute and make this project better.
BuildTo 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. |