package

npm install @vscode/test-electronGitHub-flavored package documentation.
Across all versions, last 30 days.
5,194,387 in 30 days
Runtime metadata.
This module helps you test VS Code extensions. Note that new extensions may want to use the VS Code Test CLI, which leverages this module, for a richer editing and execution experience.
Supported:
See ./sample for a runnable sample, with Azure DevOps Pipelines and Github Actions configuration.
import { runTests, runVSCodeCommand, downloadAndUnzipVSCode } from '@vscode/test-electron';
async function go() {
try {
const extensionDevelopmentPath = path.resolve(__dirname, '../../../');
const extensionTestsPath = path.resolve(__dirname, './suite');
/**
* Basic usage
*/
await runTests({
extensionDevelopmentPath,
extensionTestsPath,
});
const extensionTestsPath2 = path.resolve(__dirname, './suite2');
const testWorkspace = path.resolve(__dirname, '../../../test-fixtures/fixture1'
npm installlibnpm run compile (or npm run watch)sample, run npm install, npm run compile and npm run test to make sure integration test can run successfullyThis project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
lszomoru
lszomoru@microsoft.com
Estimated unpacked size across 32 packages.
4.1 MB
Includes dependencies.
5 direct · 3 outdated
^8.1.0
10.0.0
^3.10.1
3.10.2
^7.6.2
7.8.6
^7.0.2
9.1.0
^7.0.5
9.1.0