NinjaTurtles comes bundled with a console runner,
. If you've installed our NuGet package (version 0.8.0.0 or higher) then you'll find this in the tools folder of the package. If you've downloaded the ZIP file from CodePlex, then it's right there in the root.
Here's a simple step-by-step guide to using this:
C:\> NinjaTurtles.Console run -c MyNamespace.MyClass -m MyMethod MyTestAssembly.dll
- Add the folder containing NinjaTurtles.Console.exe and its dependencies to your path.
- In a command window, navigate to a directory containing the compiled output of your unit test project (note:
not the library under test, but its unit tests - remember, mutation testing is about testing your tests more than the code itself).
- Identify a class and/or method you want to mutation test - we'll assume you have a class in
MyNamespace called MyClass, with a method called
MyMethod that has no overloads.
- At the command prompt, type the following:
If the output isn't enough for you, then try verbose mode:
C:\> NinjaTurtles.Console run -c MyNamespace.MyClass -m MyMethod -v MyTestAssembly.dll
You can find out more by typing:
C:\> NinjaTurtles.Console help