LinuxCommandLibrary

dotnet-test

Execute tests for a .NET application.

TLDR

Execute tests for a .NET project/solution in the current directory

$ dotnet test
copy


Execute tests for a .NET project/solution in a specific location
$ dotnet test [path/to/project_or_solution]
copy


Execute tests matching the given filter expression
$ dotnet test --filter [Name~TestMethod1]
copy

Copied to clipboard