https://github.com/stefruseva88/mutation-tests-stryker
Mutation Testing using Stryker
https://github.com/stefruseva88/mutation-tests-stryker
dotnet mutation-testing nunit-tests stryker-reporter
Last synced: 20 days ago
JSON representation
Mutation Testing using Stryker
- Host: GitHub
- URL: https://github.com/stefruseva88/mutation-tests-stryker
- Owner: StefRuseva88
- License: mit
- Created: 2024-06-10T15:26:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T17:26:01.000Z (about 1 year ago)
- Last Synced: 2025-04-10T20:29:45.104Z (10 months ago)
- Topics: dotnet, mutation-testing, nunit-tests, stryker-reporter
- Language: C#
- Homepage:
- Size: 180 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mutation Tests with .Net and Stryker
[](https://learn.microsoft.com/en-us/dotnet/csharp/)
[](https://dotnet.microsoft.com/)
[](https://nunit.org/)
[](https://stryker-mutator.io/)
### This is a test project for **Back-End Test Technologies** January 2024 Course @ SoftUni.
---
## Prerequisites
- .NET Core SDK 3.1 or higher
- Visual Studio 2019 or later / Visual Studio Code
## Mutation Testing with Stryker
1. **Installing Stryker**:
Install Stryker using the Package Manager Console with the following command
```bash
dotnet tool install -g dotnet-stryker
```
2. **Running Stryker**:
Execute Stryker to perform mutation testing on your project:
```bash
dotnet stryker
```
## Analyzing the Report
After running Stryker, observe the generated report. The report will show the mutation score, which indicates the effectiveness of your tests. Aim to achieve a 100% mutation score by adding more tests.
## Exploring Stryker Further
- [Stryker Playground](https://stryker-mutator.io/stryker-playground)
- Visit the Stryker Playground to explore an interactive example. Experiment with creating additional tests to achieve a 100% mutation score.
## Further Reading and Examples
- [Robo Coasters](https://stryker-mutator.io/robo-coasters-example): Explore the Robo Coasters example for more insights into mutation testing with Stryker.
- [Robo Bar Example](https://stryker-mutator.io/docs/General/example): Try the Robo Bar Example by following the tutorial. You'll need node.js and git to run this example.
## License
This project is licensed under the [MIT License](LICENSE). See the [LICENSE](LICENSE) file for details.
## Contact
For any questions or suggestions, please reach out to the course instructor or open an issue in the repository.
---
### Happy Testing! 🚀