Skip to content

Instantly share code, notes, and snippets.

@kluivers
Created February 28, 2012 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kluivers/1932283 to your computer and use it in GitHub Desktop.
Save kluivers/1932283 to your computer and use it in GitHub Desktop.
Transform OCUnit output to html using ANT
<target name="test" depends="build"
description="Builds the project, runs the unit tests, generates a report">
<exec executable="xcodebuild" dir="zip-framework" failonerror="false" outputproperty="xcodebuild.out">
<arg line="-target Test -configuration release build" />
</exec>
<mkdir dir="reports" />
<mkdir dir="reports/raw" />
<exec executable="OCUnitReport" errorproperty="report-error.out" inputstring="${xcodebuild.out}" searchpath="true" resolveexecutable="true">
<arg line="-d reports/raw" />
</exec>
<echo message="${report-error.out}" />
<mkdir dir="reports/html" />
<junitreport todir="reports">
<fileset dir="reports/raw">
<include name="TEST-*.xml" />
</fileset>
<report format="noframes" todir="reports/html" />
</junitreport>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment