Skip to content

Commit

Permalink
Finished fixing coverage reporting so it doesn't break for those w/o …
Browse files Browse the repository at this point in the history
…libs
  • Loading branch information
Brendan W. McAdams committed Oct 26, 2011
1 parent c8ea836 commit 81b6dd1
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,17 @@ limitations under the License.
</testng>
</target>

<target name="bamboo-test" depends="compile">
<target name="bamboo-test" depends="compile,guard.noclover">
<clover-setup/>
<testng classpathref="classpath" outputdir="${testdir}" listeners="com.mongodb.util.TestNGListener, com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector" haltonfailure="false" >
<jvmarg value="-Xmx512M" />
<xmlfileset dir="." includes="testng.xml"/>
</testng>
</testng>
<clover-report>
<current outfile="coverage.xml">
<format type="xml"/>
</current>
</clover-report>
</target>

<target name="test-single" depends="compile">
Expand Down Expand Up @@ -316,5 +321,14 @@ limitations under the License.
</target>

<!-- NOTE: publish-local is now located in maven/ -->
<taskdef resource="cloverlib.xml" classpath="lib/clover-3.1.0.jar"/>

<target name="-check.clover">
<available property="clover.installed" classname="com.cenqua.clover.CloverInstr" />
</target>

<target name="guard.noclover" depends="-check.clover" unless="clover.installed">
<fail message="The target you are attempting to run requires Clover, which doesn't appear to be installed"/>
</target>

</project>

0 comments on commit 81b6dd1

Please sign in to comment.