gritcsenko / HomeInventory

Inventory management for home
MIT License
5 stars 0 forks source link

Write mutation tests #246

Open gritcsenko opened 1 year ago

gritcsenko commented 1 year ago

What

A mutant survives if it is not covered by an assertion. Kill all the mutants.

Why

Code coverage

Mutation testing

When

How

Tools

Conclusion

The good

The bad

The ugly

gritcsenko commented 1 year ago

Stryker.NET

Install

.NET Core tool via NuGet.org dotnet-stryker

.NET Core global tool

dotnet tool install -g dotnet-stryker

.NET Core local tool

dotnet new tool-manifest
dotnet tool install dotnet-stryker
dotnet tool restore

Use

dotnet stryker --config-file-path ./stryker-config.json
dotnet stryker --help

Configuration

Reporters

Integration

Global and local tools

gritcsenko commented 1 year ago

Video for reference

gritcsenko commented 1 year ago

Repo F0-Talks-MutationTesting to look at examples