snippetbashTip
dotnet test — Execute tests for a .NET application. Note: View <https://learn.microsoft.com/dotnet/core/testing/se
Viewed 0 times
commandnetexecuteclitestsfordotnet testapplication
Problem
How to use the
dotnet test command: Execute tests for a .NET application. Note: View <https://learn.microsoft.com/dotnet/core/testing/selective-unit-tests> for supported filter expressions. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-test>.Solution
dotnet test — Execute tests for a .NET application. Note: View <https://learn.microsoft.com/dotnet/core/testing/selective-unit-tests> for supported filter expressions. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-test>.Execute tests for a .NET project/solution in the current directory:
dotnet testExecute tests for a .NET project/solution in a specific location:
dotnet test {{path/to/project_or_solution}}Execute tests matching the given filter expression:
dotnet test --filter {{Name~TestMethod1}}Code Snippets
Execute tests for a .NET project/solution in the current directory
dotnet testExecute tests for a .NET project/solution in a specific location
dotnet test {{path/to/project_or_solution}}Execute tests matching the given filter expression
dotnet test --filter {{Name~TestMethod1}}Context
tldr-pages: common/dotnet test
Revisions (0)
No revisions yet.