- Add the NUnit Plugin to Jenkins
- In your project go to Configure -> Build -> Add a build step
- In the dropdown scroll down to -> Execute Windows Batch Command
- Ensure this step is placed after your MSBuild step
- Add the following, replacing the variables:
[PathToNUnit]\bin\nunit-console.exe [PathToTestDll]\Selenium.Tests.dll /xml=nunit-result.xml
- Under Post-build Actions, tick Publish NUnit test result report
- For the textbox Test report XMLs, enter "nunit-result.xml"
You could also run the command from within Visual Studio or as part of you local build process.
Here's two blog posts I used for reference.
1-Hour Guide to Continuous Integration Setup: Jenkins meets .Net (2011)
Guide to building .NET projects using Hudson (2008)
No comments:
Post a Comment
Thank you for your feedback