-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG] Test Explorer is empty and 'No tests found in the selected file or folder' for Run/Debug Tests context menu #1620
Comments
@kosa-gyula-77 Have you performed a full build of your project after opening it in VS Code? Tests will not be discovered until a build has been performed. |
@webreidi Yes, I issued a |
@kosa-gyula-77 can you try running the build within VS Code (Ctrl+Shift+B or Open Command Palette and select .NET: Build or right click on the project in Solution Explorer and select Build) and see if the tests are discovered when using that build? |
@webreidi Your proposed solution works for a very similar C# solution, but it does not work for the originally used C# solution. What is strange that VSCode says
when I open a TestFixture C# source code file in the problematic solutions. |
@kosa-gyula-77 Hmm. Okay, that means that for some reason part or all of that test project is not loading properly in C# Dev Kit. At the bottom of VSCode, you should see a section that says "Projects: " and if you don't have a file open it will say the number of projects that are open, and if you do have a file open it will say which project the open file is found in. When you open this solution, does it register the correct number of projects? Is there an error there? |
@webreidi Thanks for the hints! The issue was that the unit test's |
Describe the Issue
Symptoms
Steps To Reproduce
C# test project references
Expected Behavior
Expected
Environment Information
Visual Studio Code
Version: 1.95.3 (user setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
C# Dev Kit
v1.13.9
The text was updated successfully, but these errors were encountered: