- 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)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024