ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Dettori" <markus.dett...@wuerth-phoenix.com>
Subject Using Ant 1.5.1 / JUnit 3.7 / Xalan 2.x / exeption in JUnit thread main
Date Thu, 07 Nov 2002 07:58:36 GMT
Hi all,

I still have problems with the following tasks while using them in ant.
These are the results of ~16000 tests:

[junit] Working on ADAPTER FoolInvoicePrinting with 11 tests: ...........
PASSED.
[junit] Working on ADAPTER FoolWarehouse with 11 tests: ........... PASSED.
[junit] Working on ADAPTER FreeNumber with 11 tests: ........... PASSED.
[junit] Working on ADAPTER GenericObjectQueueItem with 11 tests: ...........
PASSED.
[junit] Working on ADAPTER InvoicePrepareAndPrint with 575
tests:......................................................................
...............................................
Working on ADAPTER InvoicePrint with 21 tests: ..................... PASSED.
[junit] Working on ADAPTER LargeQuantityCheck with 11 tests: ...........
PASSED.
[junit] Working on ADAPTER ManualPrice with 20 tests: ....................
PASSED.
[junit] Working on ADAPTER Offer with 566 tests:
............................................................................
..........................
Working on ADAPTER OfferAssignment with 559 tests:
............................................................................
..................................
Working on ADAPTER OrderCalculation with 11 tests: ........... PASSED.
[junit] Exception in thread "main"
[junit] TEST com.irgendwo.test.OrderProcessing.AllTestsAdapter FAILED


As you can see, there is a exception in JUNIT MAIN THREAD.
Therefore the xml is empty and the following is quite usual:

createTestReports:
[junitreport] The file
C:\test\generation\aa\reports\TEST-com.wuerth.phoenix.test.OrderProcessing.A
llTestsAdapter.xml is not a valid XML document. It is possibly corrupted.
[junitreport] the file C:\test\generation\aa\reports\TESTS-TestSuites.xml is
not a valid testsuite XML document
[junitreport] Using Xalan version: Xalan Java 2.2.D11
[junitreport] Transform time: 641ms
[junitreport] Using Xalan version: Xalan Java 2.2.D11
[junitreport] Transform time: 140ms

So, please give me a hint what's the problem with the exception in Junit
main.
I reduced the antcalls, gave more memory, forked all possible.
Here is the targets I call:
It should create a "Test-com.irgendwo.AllTestsAdapter.xml" file with Junit
testresults.
I a different target Xalan is called to make the html report in (no-)frames.

If you got any ideas, please tell me.

Markus



<target name="startTests" description="" depends="init, junitInit"
if="junit.present">
      <echo message="Test-Path: ${test.path}" />
      <echo message="Test-Name: ${test.name}" />
      <echo message="Conf-Dir:  ${conf.dir}" />

      <junit printsummary="yes"
        fork="yes"
         haltonfailure="no"
         showoutput="yes">

        <classpath refid="project.class.path"/>

         <jvmarg value="-Xmx1024m"/>
        <jvmarg value="-verbosegc"/>
        <jvmarg value="-Djava.library.path=${project.library.path}"/>
        <jvmarg value="-DORBagentPort=${corba.port}"/>
        <jvmarg value="-DORBagentAddr=${corba.address}"/>
        <jvmarg value="-Dphoenix.rtmode=client"/>
        <jvmarg
value="-Dphoenix.config=${conf.dir}/${phoenix.component.name}.properties"/>

        <formatter type="xml" usefile="yes" />

        <test name="${test.name}"
           if="test.name"
           fork="true"
           haltonfailure="no"
          failureproperty="failure.prop"
          todir="${working.dir}/reports"/>

        <batchtest
           if="test.path"
           fork="true"
           haltonfailure="no"
          failureproperty="failure.prop"
           todir="${working.dir}/reports">

          <fileset dir="${build.dir}">
            <include name="${test.path}/**/*Test.class" />
            <exclude name="${test.path}/**/AllTests*.class" />
          </fileset>
        </batchtest>

      </junit>

    </target>







--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message