NinjaTurtles comes bundled with a console runner, NinjaTurtles.Console.exe. 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:

  1. Add the folder containing NinjaTurtles.Console.exe and its dependencies to your path.
  2. 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).
  3. 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.
  4. At the command prompt, type the following:
C:\> NinjaTurtles.Console run -c MyNamespace.MyClass -m MyMethod MyTestAssembly.dll

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

Last edited Aug 16, 2012 at 9:30 AM by davidmus, version 2

Comments

No comments yet.