Skip to content

Instantly share code, notes, and snippets.

@andykuszyk
Created May 9, 2016 09:01
Show Gist options
  • Save andykuszyk/f43be4f56eb6d27479c5d73286758284 to your computer and use it in GitHub Desktop.
Save andykuszyk/f43be4f56eb6d27479c5d73286758284 to your computer and use it in GitHub Desktop.
Running NUnit3 tests in Go CD

#Running NUnit3 tests in Go CD

Running NUnit3 tests under Go CD is easy enough using the console runner, but the outputted test results are not understood by Go, even when you mark them as a test artifact.

In order for them to be recoginized by Go, you need to output the test results xml file in the NUnit2 version.

This can be done by adding the following option to your command line call@

--result=TestResult.xml;format=nunit2

For example, a task script for running NUnit3 tests might look like this:

nunit3-console.exe MyTestProject.dll --result=TestResult.xml;format=nunit2

If the `TestResult.xml' file is then attached as a test artifact for this job, Go CD should publish the results in the tests tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment