The CLI exclusively uses Mocha under the hood. The test CLI provides quick setup, and also allows you to easily run and debug tests of the VS Code UI using the Extension Test Runner. You can find an example in the extensions sample repo. The VS Code team publishes a command-line tool to run extension tests. Runs the Mocha tests specified by the extension test runner script.Downloads and unzips latest version of VS Code.In the generated extension, you can use npm run test or yarn test to run the integration tests that: If you are using the Yeoman Generator to scaffold an extension, integration tests are already created for you. This documentation focuses on VS Code integration tests. We refer to these tests as integration tests, because they go beyond unit tests that can run without a VS Code instance. These tests will run inside a special instance of VS Code named the Extension Development Host, and have full access to the VS Code API. Visual Studio Code supports running and debugging tests for your extension.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |