Skip to content

Instantly share code, notes, and snippets.

@WilliamBerryiii
Created April 20, 2016 05:02
Show Gist options
  • Save WilliamBerryiii/64706aa2e98b6d0b7d304546ca63d927 to your computer and use it in GitHub Desktop.
Save WilliamBerryiii/64706aa2e98b6d0b7d304546ca63d927 to your computer and use it in GitHub Desktop.
Example of calling nunit3 from nant and exporting an nunit2 test results file.
<target name="test" depends="compile">
<copy file="src/ApplicationUnitTests/bin/${build.configuration}/App.config" tofile="src/Application.config" />
<exec program="nunit3-console.exe">
<arg value="src/Application.nunit" />
<arg value="--config:Release" />
<arg value="--result=TestResult.xml;format=nunit2" />
</exec>
<delete file="src/Application.config" />
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment