-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
Description
Affected adapter versions that I tested were 4.5.0, 4.6.0, and 5.0.0. When running tests such as this repro project, tests are not discovered during runs initiated inside Visual Studio, but they are during dotnet test
runs.
When running tests in Test Explorer, which has this problem, the Output window for Tests shows NUnit3TestExecutor discovered 0 of 8 NUnit tests cases using Current Discovery mode, Explicit run
.
When running dotnet test
, which does not have this problem, the console shows NUnit3TestExecutor discovered 8 of 8 NUnit test cases using Current Discovery mode, Non-Explicit run
.
The word 'explicit' does not appear in the repro. Any empty test will demonstrate this issue.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
</ItemGroup>
</Project>