- 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)
- Atlassian Jira Demo - January 4, 2025
- Revolutionizing Business Management with Microsoft Business Central - January 4, 2025
- Key Benefits of Converting HTML to PDF File Format - January 2, 2025