microsoft / vscode-test-cli

Command-line runner for VS Code tests
MIT License
19 stars 7 forks source link

Tests not being discovered/shown in the Testing UI #42

Closed g-arjones closed 3 months ago

g-arjones commented 3 months ago

I followed the steps in the README and can successfully run the CLI from the command line. The --coverage option works as expected on the command line but I don't see anything on vscode even after running the tests directly from the editor. Does this require any setup? Is there a sample repo I can use?

g-arjones commented 3 months ago

This is the launch configuration I am using:

        {
            "name": "Extension Tests",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "testConfiguration": "${workspaceFolder}/.vscode-test.mjs",
            "args": [
                "--disable-extensions",
                "--extensionDevelopmentPath=${workspaceFolder}",
                "--extensionTestsPath=${workspaceFolder}/out/test"
            ],
            "outFiles": ["${workspaceFolder}/out/**/*.js"],
            "preLaunchTask": "npm: watch"
        }

This is what I get when I use the Test: Run All Tests command:

 *  The test run did not record any output. 
connor4312 commented 3 months ago

Duplicates https://github.com/microsoft/vscode-extension-test-runner/issues/32