This repo started out as a fork to learn more about how to use MediatR. Over time, I have used this more as a playground to explore and test out new .NET tooling, functionality and set up CI pipelines using GitHub Actions.
The test projects use TUnit as it is more performant compared to the alterntaives -- it uses source-generated tests and parallel execution by default.
💡 You can add --no-build to first command if you already built code.
dotnet test --configuration Release -- --coverage --coverage-output-format xml --coverage-output coverage.cobertura.xml --crashdump --hangdump
dotnet-coverage merge **/*/*.cobertura.xml -f cobertura -o ./coverage.cobertura.xmlWhen building for CI/CD, we want to keep package versions locked based on lock file(s). If you encounter NU1403, try doing the following (source):
dotnet nuget locals all --clear
git clean -xfd
git rm **/packages.lock.json -f
dotnet restore