Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.16 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.16 KB

C# kata starter

This project contains a number of katas with instructions ordered in a proven path described in my book Agile Technical Practices Distilled.

Instructions

Build solution

dotnet build

Execute tests

dotnet test

Or use the TRX test reporting tool for enhanced console output:

dotnet test -l trx; trx

Execute tests with coverage

dotnet test --collect:"XPlat Code Coverage;IncludeTestAssembly=true;Format=cobertura"

Generate test coverage reports

reportgenerator -reports:"**/*coverage.cobertura.xml" -targetdir:'CoverageReports' -reporttypes:'Html_Dark' -assemblyfilters:-AutoGeneratedProgram -classfilters:"-AutoGeneratedProgram;-*.*Should;-*.*Test*;-*.*TestDataGenerator"

View coverage report

Open CoverageReports/index.html in your browser to view the detailed coverage report.

Prerequisites

  • .NET 8.0 SDK or later
  • ReportGenerator tool (install via dotnet tool install -g dotnet-reportgenerator-globaltool)

Project Structure

  • /src - Contains the source code for the katas
  • /test - Contains the test projects