File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ limitations under the License.
31
31
<property name =" build.instrumented.dir" location =" ${ build.dir } /instrumented" />
32
32
<property name =" build.logs.dir" location =" ${ basedir } /logs" />
33
33
<property name =" build.docs.dir" location =" ${ basedir } /docs" />
34
+ <property name =" artifact.name" value =" mongo.jar" />
34
35
<property name =" target.dir" location =" ${ basedir } /target" />
35
36
<property name =" test.dir" location =" ${ target.dir } /test" />
36
37
<property name =" test.classes" value =" *" />
@@ -294,6 +295,22 @@ limitations under the License.
294
295
</testng >
295
296
</target >
296
297
298
+ <target name =" test-with-artifact" depends =" test-compile" >
299
+
300
+ <path id =" artifact.classpath" >
301
+ <pathelement path =" ${ build.test.dir } " />
302
+ <pathelement location =" lib/testng-6.3.1.jar" />
303
+ <pathelement location =" ${ artifact.name } " />
304
+ </path >
305
+
306
+ <testng classpathref =" artifact.classpath" outputdir =" ${ test.dir } " listeners =" com.mongodb.util.TestNGListener" haltonfailure =" false" verbose =" 1" >
307
+ <jvmarg value =" -Xmx512M" />
308
+ <jvmarg value =" -ea" />
309
+ <jvmarg value =" -Dcom.mongodb.slaveAcceptableLatencyMS=${ test.com.mongodb.slaveAcceptableLatencyMS } " />
310
+ <classfileset dir =" ${ build.test.dir } " includes =" **/${ test.classes } .class" />
311
+ </testng >
312
+ </target >
313
+
297
314
<!-- ******************************************************************* -->
298
315
<!-- The coverage targets -->
299
316
<!-- ******************************************************************* -->
You can’t perform that action at this time.
0 commit comments