Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Getting Started

Oli Wennell edited this page Oct 8, 2018 · 8 revisions

Initial Setup

  • Open the solution (.sln) file that contains your code and tests.
  • Add a reference to the Fettle.Console NuGet package to one of your test projects.
  • Build the solution or do a NuGet restore to download the Fettle NuGet package to your packages directory.
  • Create a Fettle configuration file for the solution and save it to the root directory of your project.

Running Fettle

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;

Next Steps

Clone this wiki locally