- dotnet new
- dotnet build
- dotnet build-server
- dotnet run
- dotnet test
- dotnet publish
- dotnet pack
- dotnet sln
- dotnet add
How to run a single xunit C# test using dotnet test command line
I was able to run a single xunit test via the developer command prompt using this template.
dotnet test "complete_path/someTestDll.dll" --filter "Namespace.ClassName.MethodName"
You can also run this command to see a full list of tests available, to help double check that the paths and names in your command are correct.
dotnet test "complete_path/someTestDll.dll" -t
dotnet test -l:trx;LogFileName=C:\temp\TestOutput.xml
Latest posts by Rajesh Kumar (see all)
- What is Mobile Virtual Network Operator? - April 18, 2024
- What is Solr? - April 17, 2024
- Difference between UBUNTU and UBUNTU PRO - April 17, 2024