java - TestNg execution hangs when calling a testng_generic.xml file from build.xml file -
i using build.xml file run unit tests. makes call testng_generic.xml file has test classes.
build.xml:
<testng outputdir="${reports.tests}" failureproperty="tests.failed" classpathref="xyz.classpath" haltonfailure="false" verbose="2" mode="mixed" parallel="false"> <jvmarg line="-xx:-usesplitverifier"/> <classpath path="${dir.unittest}"/> <!-- lots of other stuff, not relevant here> <!-- tell ant test classes need run --> <xmlfileset dir="${dir.unittest}" includes="testng_generic.xml" /> </testng> here testng_generic.xml file:
<?xml version="1.0" encoding="utf-8"?> <!doctype suite system "http://testng.org/testng-1.0.dtd"> <suite name="generic tests"> <test verbose="2" name="windows supported testng process launcher tests" preserve-order="true"> <groups> <run> <include name="process"/> </run> </groups> <classes> <class name="com...machine...processtest"/> </classes> </test> <test verbose="2" name="windows supported testng tests" preserve-order="true"> <groups> <run> <include name="generic"/> </run> </groups> <classes> <class name="com...machine...buffertest"/> <class name="com...machine...servertest"/> <class name="com...machine...clienttest"/> <class name="com...machine...commtest"/> <class name="com...machine...configurationtest"/> </classes> </test> <!-- default test --> <test verbose="2" name="windows supported junit tests" preserve-order="true" junit = "true"> <classes> <class name="com...machine..jobmanager..jobtest"/> </classes> </test> <!--default test --> </suite> this not work, when invoke build runtests (it invokes unit tests). execution hangs. have done grouping wrong ? need run processtest separately other tests.
Comments
Post a Comment