Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding 'test-with-artifact' target

  • Loading branch information...
commit 66e8c99626e0d7cf26841984ebecf817db626814 1 parent c2a691f
@trnl trnl authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 build.xml
View
17 build.xml
@@ -31,6 +31,7 @@ limitations under the License.
<property name="build.instrumented.dir" location="${build.dir}/instrumented"/>
<property name="build.logs.dir" location="${basedir}/logs"/>
<property name="build.docs.dir" location="${basedir}/docs"/>
+ <property name="artifact.name" value="mongo.jar"/>
<property name="target.dir" location="${basedir}/target"/>
<property name="test.dir" location="${target.dir}/test"/>
<property name="test.classes" value="*"/>
@@ -294,6 +295,22 @@ limitations under the License.
</testng>
</target>
+ <target name="test-with-artifact" depends="test-compile">
+
+ <path id="artifact.classpath">
+ <pathelement path="${build.test.dir}" />
+ <pathelement location="lib/testng-6.3.1.jar"/>
+ <pathelement location="${artifact.name}"/>
+ </path>
+
+ <testng classpathref="artifact.classpath" outputdir="${test.dir}" listeners="com.mongodb.util.TestNGListener" haltonfailure="false" verbose="1" >
+ <jvmarg value="-Xmx512M" />
+ <jvmarg value="-ea" />
+ <jvmarg value="-Dcom.mongodb.slaveAcceptableLatencyMS=${test.com.mongodb.slaveAcceptableLatencyMS}"/>
+ <classfileset dir="${build.test.dir}" includes="**/${test.classes}.class" />
+ </testng>
+ </target>
+
<!-- ******************************************************************* -->
<!-- The coverage targets -->
<!-- ******************************************************************* -->
Please sign in to comment.
Something went wrong with that request. Please try again.