Skip to content

the extension init does not get run when run integration test with @vscode/test-electron #252812

Open
@loichinh350

Description

@loichinh350

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: build from head
  • OS Version: mac

Steps to Reproduce:

  1. have a simple test-electron code, inside the neovim github https://github.com/vscode-neovim/vscode-neovim
import * as path from "path";

import { runTests } from "@vscode/test-electron";

async function main(): Promise<void> {
    try {
        // The folder containing the Extension Manifest package.json
        // Passed to `--extensionDevelopmentPath`
        const extensionDevelopmentPath = path.resolve(__dirname, "../../");

        // The path to the extension test runner script
        const extensionTestsPath = path.resolve(__dirname, "./integ/index");

        // Download VS Code, unzip it and run the integration test
        await runTests({
            vscodeExecutablePath: "/VSCode-darwin-arm64/Code - OSS.app/Contents/MacOS/Electron",
            launchArgs: ["--disable-extensions"],
            extensionDevelopmentPath,
            extensionTestsPath,
            extensionTestsEnv: {
                NEOVIM_DEBUG: "1",
                NEOVIM_DEBUG_HOST: "127.0.0.1",
                NEOVIM_DEBUG_PORT: "4000",
                NEOVIM_TEST_REGEX: "Basic editing and navigation Normal mode",
            },
        });
    } catch (err) {
        console.error(err);
        console.error("Failed to run tests");
        // process.exit(1);
    } finally {
        console.log("Finish");
    }
}

main();

  1. When run this test, the src/extension.ts of neovim does not get run. why is that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions