Created
October 18, 2010 18:44
save fitnesse log as xml in CC
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="save log as xml"> | |
<xmlproperty file="${log.file}" collapseAttributes="true"/> | |
<condition property="suite.failed"> | |
<or> | |
<not> | |
<equals arg1="${testResults.finalCounts.wrong}" arg2="0"/> | |
</not> | |
<not> | |
<equals arg1="${testResults.finalCounts.ignores}" arg2="0"/> | |
</not> | |
<not> | |
<equals arg1="${testResults.finalCounts.exceptions}" arg2="0"/> | |
</not> | |
</or> | |
</condition> | |
<if> | |
<isset property="testResults.result.relativePageName"/> | |
<then> | |
<xslt in="${log.file}" out="${working.dir}\${suite}Result.xml" style="rfittests.xsl" /> | |
<fail if="suite.failed" message="Suite ${suite} on ${test.lab.name} is failed"/> | |
<echo message="Suite ${suite} on ${test.lab.name} is succeded"/> | |
</then> | |
<else> | |
<echo message="Suite ${suite} for ${test.lab.name} is skipped"/> | |
</else> | |
</if> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment