File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,17 @@ limitations under the License.
235
235
</testng >
236
236
</target >
237
237
238
- <target name =" bamboo-test" depends =" compile" >
238
+ <target name =" bamboo-test" depends =" compile,guard.noclover " >
239
239
<clover-setup />
240
240
<testng classpathref =" classpath" outputdir =" ${ testdir } " listeners =" com.mongodb.util.TestNGListener, com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector" haltonfailure =" false" >
241
241
<jvmarg value =" -Xmx512M" />
242
242
<xmlfileset dir =" ." includes =" testng.xml" />
243
- </testng >
243
+ </testng >
244
+ <clover-report >
245
+ <current outfile =" coverage.xml" >
246
+ <format type =" xml" />
247
+ </current >
248
+ </clover-report >
244
249
</target >
245
250
246
251
<target name =" test-single" depends =" compile" >
@@ -316,5 +321,14 @@ limitations under the License.
316
321
</target >
317
322
318
323
<!-- NOTE: publish-local is now located in maven/ -->
324
+ <taskdef resource =" cloverlib.xml" classpath =" lib/clover-3.1.0.jar" />
325
+
326
+ <target name =" -check.clover" >
327
+ <available property =" clover.installed" classname =" com.cenqua.clover.CloverInstr" />
328
+ </target >
329
+
330
+ <target name =" guard.noclover" depends =" -check.clover" unless =" clover.installed" >
331
+ <fail message =" The target you are attempting to run requires Clover, which doesn't appear to be installed" />
332
+ </target >
319
333
320
334
</project >
You can’t perform that action at this time.
0 commit comments