This repository was archived by the owner on May 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Getting Started
Oli Wennell edited this page Oct 8, 2018
·
8 revisions
- Open the solution (.sln) file that contains your code and tests.
- Add a reference to the
Fettle.ConsoleNuGet package to one of your test projects. - Build the solution or do a NuGet restore to download the Fettle NuGet package to your
packagesdirectory. - Create a Fettle configuration file for the solution and save it to the root directory of your project.
You can now run the Fettle executable from your packages directory, using the configuration file you saved.
For example:
packages\Fettle.Console.0.4.0\tools\Fettle.Console.exe -c fettle.config.yml
When mutants survive, Fettle outputs the source file and line number of the code that was mutated. It also shows what the line was originally, and what it was mutated to.
For example:
2 mutant(s) survived!
(1) DomainLogic\Customer.cs:7
original: return a == 42;
mutated: return a != 42;
(2) Logging\VerboseLogger.cs:7
original: return a > 0;
mutated: return a >= 0;
- Find out how to kill any surviving mutants you may have.
- See the list of command line arguments for more options.
- See the list of mutations that Fettle applies.
- If you get stuck see the troubleshooting guide.