Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g-arjones opened this issue May 22, 2024 · 1 comment
Open

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

g-arjones opened this issue May 22, 2024 · 1 comment

Comments

@g-arjones
Copy link

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?

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. 
@g-arjones
Copy link
Author

g-arjones commented May 22, 2024

There seems to be a bug when other extensions that may provide tests are also active. I had the python. Disabling it for the workspace did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant