![]() ![]() In general if you run extension tests from CLI, the version the tests run with cannot be running already. To get started, you'll want to first install the module, as well as module that enables tests to be run in VS Code Desktop: npm install -save-dev installing the modules, you'll have the vscode-test command line, which you can add to the scripts section in your package.json: Tips Using Insiders version for extension developmentīecause of VS Code's limitation, if you are using VS Code stable release and try to run the integration test on CLI, it will throw an error: Running extension tests from the command line is currently only supported if no other instance of Code is running. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |