Skip to content

AjayKMehta/Dappery

 
 

Repository files navigation

CodeQL Infer#

Run tests codecov

Semgrep

Open in Visual Studio Code

Introduction

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.

Run unit tests

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.xml

Package restore

When 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

About

A Dapper + MediatR based .NET project with latest functionality, tooling and CI pipelines.

Topics

Resources

Stars

Watchers

Forks

Languages

  • C# 99.0%
  • TSQL 1.0%