Closed pluma9 closed 5 months ago
The --list-tests command is only using the Discovery section for tests. No filters work with that command , not the where command, and not the dotnet --filter <selection statement>
.
For normal execution, using the Execution section , which applies the filters.
I don't think we will change this behavior.
dotnet test -- NUnit.Where="name=~Foo"
outputs 2 tests:But
dotnet test --list-tests -- NUnit.Where="name=~Foo"
outputs 3 tests:Expectation:
--list-tests
should output only 2 tests.NUnit and NUnit3TestAdapter versions NUnit 4.1.0 NUnit3TestAdapter 4.5.0
Visual Studio edition and full version number (see Help About) No Visual Studio
A short repro, preferably attached or pointing to a git repo or gist
The Tests class:
csproj:
What .net platform and version is being targeted .NET sdk: 8.0.300-preview.24203.14 Target: net8.0
If TFS/VSTS issue, what version, hosted or on-premises, and what build task you see this in N/A