https://github.com/raschmitt/stryker-net-sample
Mutation tests sample project in .Net Core with Stryker.NET
https://github.com/raschmitt/stryker-net-sample
mutation-tests stryker stryker-net
Last synced: about 1 month ago
JSON representation
Mutation tests sample project in .Net Core with Stryker.NET
- Host: GitHub
- URL: https://github.com/raschmitt/stryker-net-sample
- Owner: raschmitt
- License: mit
- Created: 2020-07-21T18:39:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T01:29:33.000Z (about 5 years ago)
- Last Synced: 2025-01-08T18:16:42.759Z (over 1 year ago)
- Topics: mutation-tests, stryker, stryker-net
- Language: C#
- Homepage:
- Size: 103 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Striker.Net Sample
[](https://dev.azure.com/raschmitt/raschmitt/_build?definitionId=30)
[](https://sonarcloud.io/dashboard?id=raschmitt_stryker-net-sample)
[](https://dashboard.stryker-mutator.io/reports/github.com/raschmitt/stryker-net-sample/master)
This is a sample project that demonstrates how [Stryker .Net](https://github.com/stryker-mutator/stryker-net) can be used to run mutation tests in .Net Core, if you are looking for more information on Stryker itself or what mutation tests can do for you, please refer to their [official website](https://stryker-mutator.io/).
## Project Dependencies
- [.Net Core 3.1](https://devblogs.microsoft.com/dotnet/announcing-net-core-3-1/)
## Local Run
After cloning this repository the first thing to be done is to install Stryker globally:
```
dotnet tool install -g dotnet-stryker
```
Then go to the tests folder location:
```
cd \Stryker.Net.Sample\Stryker.Net.Sample.Tests
```
And run the mutation tests:
```
dotnet stryker
```
After Stryker is done it will display your mutation score and the complete html report location.

## Continuous Integartion
- [Sample pipeline workflow](https://dev.azure.com/raschmitt/raschmitt/_git/pipeline-templates?path=%2Fsteps%2Fmutation_tests%2Fstryker_csharp.yml)
The sample workflow file shows how to easily integrate mutation tests through Stryker into a continuous integration strategy and publish results to its dashboard.
This workflow is automatically run every day, and the latest results can be found [here](https://dashboard.stryker-mutator.io/reports/github.com/raschmitt/stryker-net-sample/master).