formulahendry / vscode-dotnet-test-explorer

.NET Core Test Explorer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.dotnet-test-explorer
MIT License
204 stars 97 forks source link

Unable to discover NUnit tests #361

Open miksch123 opened 2 years ago

miksch123 commented 2 years ago

Since version 7.7 I no longer can see the list of tests in the testing area of VSCode. Reverting to 7.6 does not seem to have this issue. I also tried different ways of setting the project path in settings.json or the extension settings.

  1. Dotnet sdk version: dotnet core SDK 3.1.417
  2. Unit test framework: NUnit 3.13.2, NUnit3TestAdapter 4.2.1

I also am running my project in a VMWare VM.

miksch123 commented 2 years ago

There is the output of my dotnet info command: .NET Core SDK (reflecting any global.json): Version: 3.1.417 Commit: e22a5e10f1

Runtime Environment: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.417\

Host (useful for support): Version: 3.1.23 Commit: 7af614fde0

.NET Core SDKs installed: 3.1.417 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

JanusTida commented 1 year ago

I'm using xUnit and encountered the same problem,but it works well in mstest