1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:02:08 +02:00
tldr/pages/common/dotnet-test.md
2024-05-22 16:05:36 +05:30

562 B

dotnet test

Execute tests for a .NET application. Note: View https://learn.microsoft.com/en-us/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 test

  • Execute 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}}