Testing with TUnit
The solution uses TUnit as testing framework. It is based on Microsoft.Testing.Platform architecture that has some differences from the traditional VSTest mode. When invoking tests via dotnet test the following key things should apply:
- •
Running
dotnet teston Microsoft.Testing.Platform, the additional--are not required when passing test framework specific parameters. Ex:dotnet test -- --report-trxshould becomedotnet test --report-trx. - •
If passing a specific solution (or directory containing solution), for example,
dotnet test MySolution.sln, this should becomedotnet test --solution MySolution.sln. - •
If passing a specific project (or directory containing project), for example,
dotnet test MyProject.csproj, this should becomedotnet test --project MyProject.csproj.If passing a specific dll, for example,
dotnet test path/to/UnitTests.dll, this should becomedotnet test --test-modules path/to/UnitTests.dll. Note that--test-modulesalso supports globbing.