In our company, we use NUnit with Hudson for automated unit testing. It is easy to configure and execute.
Just download and unzip the latest nunit somewhere on the Hudson host.
Add a Windows command command as the last buildstep with content like:
C:\NUnit\bin\net-2.0\nunit-console.exe "%WORKSPACE%\src\Test\AllTests.nunit" /config=Release /xml="%WORKSPACE%\src\Test\TestResults.xml"
This will run the tests defined in the "AllTests.nunit" file. You can point tu to only one assembly (.dll).
To fill out the test results on the Hudson Job page, you need to install the Hudson NUnit plugin. This is possible directly from the Hudson plugin management.
After installation, a new Post build action will appear: Publish a report on the results of the NUnit test. If you check it, you have a line to enter the path for the report on the test results. The corresponding path, for example, is given above:
src/Test/TestResults.xml
Hope this helps you decide; -)
source share