Hello !

I previously wrote jython tests with PyUnit but this is not well
integrated into ANT and the report  output is not as good as Junit one,
applying a satisfying stylesheet then not really feasible.
I made few tries to write jython tests inheriting from junit, generating
the .class with jythonc
and get the following error when integrating into ANT (verbose mode):
    [junit] Running MyTestCase
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/javax.xml.parsers.DocumentBuilderFactory from
C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/javax.xml.parsers.DocumentBuilderFactory from
C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration
from C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
org/apache/xerces/parsers/IntegratedParserConfiguration.class from
C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
org/apache/xerces/parsers/IntegratedParserConfiguration.class from
C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/javax.xml.parsers.DocumentBuilderFactory from
C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/javax.xml.parsers.DocumentBuilderFactory from
C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration
from C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
org/apache/xerces/parsers/IntegratedParserConfiguration.class from
C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource
org/apache/xerces/parsers/IntegratedParserConfiguration.class from
C:\Data\TSTU\jpywork\MyTestCase.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase$_PyInner.class
Ignoring Exception java.util.zip.ZipException: error in opening zip file
reading resource org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl.class
from C:\Data\TSTU\jpywork\MyTestCase.class
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] TEST MyTestCase FAILED
[junitreport] Parsing file: 'C:\Data\TSTU\result.xml'
[junitreport] Using Xalan version: Xalan Java 2.2.D11
[junitreport] Transform time: 861ms

though the .class generated per jythonc is decompilable without any
problem by any decompiler. any why I get this error ?

Anyways, I've seen few proposals on jython mailing lists with jythonc
and jython TestFinder (to simulate the JUnit test finder and run with
ANT) but could not find a conclugind thread. Does anybody have a sample
of jython tests integrated into Junit&ANT to share ?

thanx.

seb.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to