user14146382
user14146382

Reputation: 98

What is a good way to filter xUnit tests in .NET?

We are trying to set up filtering for our xUnit tests in our current solution that is built in the .NET framework (4.6). Most resources suggest to use filtering via the dotnet command but that is only for .NET Core. Is there a good way to do this without the dotnet command?

Upvotes: 0

Views: 170

Answers (2)

user14146382
user14146382

Reputation: 98

xunit.runner.console seems to work but it's deprecated so we didn't want to use it. We ended up using vstest.console.exe.

Upvotes: 1

Ruben Bartelink
Ruben Bartelink

Reputation: 61885

xunit.runner.console has filtering options. It's downloadable from nuget.

Upvotes: 0

Related Questions