Created
February 28, 2012 12:34
-
-
Save kluivers/1932283 to your computer and use it in GitHub Desktop.
Transform OCUnit output to html using ANT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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