-
Notifications
You must be signed in to change notification settings - Fork 64
NUnit
Henrik edited this page Aug 21, 2014
·
1 revision
Run tests written with the NUnit test framework.
desc "Run all nunit tests"
nunit :test => [:build] do |cmd|
cmd.command = "path/to/nunitconsole"
cmd.assemblies = FileList["wildcard/path/to/assemblies"]
cmd.results_path = "path/to/results"
cmd.no_logo
end
The location of the nunit console executable.
command = "path/to/nunitconsole"
One or more assemblies containing [TestFixture]
s for nunit to run. You can use a simple array or a Rake FileList
.
assemblies = FileList["wildcard/path/to/assemblies"]
The output path for the results XML file that NUnit always generates.
results_path = "path/to/results"
Hide the startup banner and copyright message.
no_logo
You can still change the standard output and error by using the generic parameters
property.
parameters = [
"/out=nunit-output.txt",
"/err=nunit-error.txt"
]