Skip to content

[BUG] NO test found / shown in the Test Explorer! #2044

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

Open
khteh opened this issue May 27, 2025 · 6 comments
Open

[BUG] NO test found / shown in the Test Explorer! #2044

khteh opened this issue May 27, 2025 · 6 comments
Labels
area-test Test discovery, execution, debugging bug Something isn't working

Comments

@khteh
Copy link

khteh commented May 27, 2025

Describe the Issue

https://code.visualstudio.com/docs/csharp/testing There is no test at all in the Test Explorer window!

Image

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

VS Code Version: 1.94.2
OS Version: Ubuntu 25.04
C# Dev Kit: v1.17.64

@khteh khteh added the bug Something isn't working label May 27, 2025
@github-actions github-actions bot added the area-test Test discovery, execution, debugging label May 27, 2025
@webreidi
Copy link

@khteh Have you performed a build of your solution? You can click on the refresh tests button, and it should perform a build and then discover the tests.

@khteh
Copy link
Author

khteh commented May 28, 2025

Yes, of course I did.

@webreidi
Copy link

@khteh are you working in a public repo that you can share? Can you provide the output from the "C# Dev Kit - Test Explorer" output panel?

@ocallesp
Copy link
Member

Hi @khteh,
Have you tried following the troubleshooting steps in the documentation? You can find detailed instructions here: https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq#_why-are-my-tests-not-being-discovered-or-run-in-the-test-explorer

Please let me know if the issue persists after trying these steps.

@khteh
Copy link
Author

khteh commented May 29, 2025

are you working in a public repo that you can share?

https://github.com/khteh/AspNetCoreWebApi

Can you provide the output from the "C# Dev Kit - Test Explorer" output panel?

Activating task providers dotnet
Activating task providers all
Activating task providers all

@khteh
Copy link
Author

khteh commented May 29, 2025

Hi @khteh, Have you tried following the troubleshooting steps in the documentation? You can find detailed instructions here: https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq#_why-are-my-tests-not-being-discovered-or-run-in-the-test-explorer

Please let me know if the issue persists after trying these steps.

To no avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test Test discovery, execution, debugging bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants