Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

NUnit Integration

alexandernyquist edited this page Jul 5, 2011 · 5 revisions

You can execute NUnit tests by using the nunit runnable.

The first argument is an array of assemblies to test and the second argument is a hash containing options:

target test:
  test_assemblies = ("path/to/testassembly.dll", "path/to/AnotherTestAssembly.dll")
  nunit(assemblies: test_assemblies, toolPath: "path/to/nunit.console.exe")

The following options are available:

Option Description Default value Type
assembly Path to assembly to test [empty] string
assemblies Array of assemblies to test [empty] Array of strings
toolPath Path to nunit console executable lib\nunit\nunit-console.exe string
include Test categories to include [empty] string
exclude Test categories to exclude [empty] string

Either ‘assembly’ or ‘assemblies’ are required.

Clone this wiki locally