ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject RE: junitreport XSL problem
Date Wed, 21 Feb 2001 10:46:26 GMT
Thanks a lot for your detailed report !

However there is still a problem...it runs fine with me !

I took junit3.5, the xalan.jar and xerces.jar from xalan 1.2.2, the
optional.jar(I renamed it) and ant.jar from ant 1.3b2
I put xalan.jar, xerces.jar, ant.jar, optional.jar into the base junit3.5
directory and used the attached build.xml(modified a few things from yours)
and build.bat

E:\download\junit3.5>build
Executing ant with java in e:\jdk\jdk1.3
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Server VM (build 2.0fcs-E, mixed mode)
Buildfile: build.xml

dump-info:
     [echo] java.vm.info=mixed mode
     [echo] java.vm.name=Java HotSpot(TM) Server VM
     [echo] java.vm.vendor=Sun Microsystems Inc.
     [echo] java.vm.version=2.0fcs-E
     [echo] os.arch=x86
     [echo] os.name=Windows NT
     [echo] os.version=4.0
     [echo] file.encoding=Cp1252
     [echo] user.language=en

init:

test:
    [junit] Running junit.tests.ActiveTestTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.851 sec
    [junit] Running junit.tests.AssertTest
    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.ClassLoaderTest
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.02 sec
    [junit] TEST junit.tests.ClassLoaderTest FAILED
    [junit] Running junit.tests.ExceptionTestCaseTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
    [junit] Running junit.tests.ExtensionTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
    [junit] Running junit.tests.Failure
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.02 sec
    [junit] TEST junit.tests.Failure FAILED
    [junit] Running junit.tests.InheritedTestCase
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.LoadedFromJar
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.LoadedFromJar FAILED
    [junit] Running junit.tests.NoTestCaseClass
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.02 sec
    [junit] TEST junit.tests.NoTestCaseClass FAILED
    [junit] Running junit.tests.NoTestCases
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.NoTestCases FAILED
    [junit] Running junit.tests.NotPublicTestCase
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.NotPublicTestCase FAILED
    [junit] Running junit.tests.NotVoidTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.OneTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.OverrideTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.07 sec
    [junit] Running junit.tests.RepeatedTestTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.021 sec
    [junit] Running junit.tests.SorterTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.08 sec
    [junit] Running junit.tests.StackFilterTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.02 sec
    [junit] TEST junit.tests.StackFilterTest FAILED
    [junit] Running junit.tests.Success
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.SuiteTest
    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
    [junit] Running junit.tests.TestCaseClassLoaderTest
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.1 sec
    [junit] TEST junit.tests.TestCaseClassLoaderTest FAILED
    [junit] Running junit.tests.TestCaseTest
    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TestImplementorTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TestListenerTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TextRunnerTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 3.485 sec
    [junit] Running junit.tests.WasRun
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.WasRun FAILED
[junitreport] Transform time for all-packages.xsl: 2073ms
[junitreport] Transform time for all-classes.xsl: 470ms
[junitreport] Transform time for overview-packages.xsl: 871ms
[junitreport] Transform time for class-details.xsl: 261ms
[junitreport] Transform time for class-details.xsl: 330ms
[junitreport] Transform time for class-details.xsl: 261ms
[junitreport] Transform time for class-details.xsl: 370ms
[junitreport] Transform time for class-details.xsl: 241ms
[junitreport] Transform time for class-details.xsl: 290ms
[junitreport] Transform time for class-details.xsl: 320ms
[junitreport] Transform time for class-details.xsl: 261ms
[junitreport] Transform time for class-details.xsl: 250ms
[junitreport] Transform time for class-details.xsl: 331ms
[junitreport] Transform time for class-details.xsl: 250ms
[junitreport] Transform time for class-details.xsl: 250ms
[junitreport] Transform time for class-details.xsl: 261ms
[junitreport] Transform time for class-details.xsl: 130ms
[junitreport] Transform time for class-details.xsl: 130ms
[junitreport] Transform time for class-details.xsl: 130ms
[junitreport] Transform time for class-details.xsl: 321ms
[junitreport] Transform time for class-details.xsl: 120ms
[junitreport] Transform time for class-details.xsl: 130ms
[junitreport] Transform time for class-details.xsl: 210ms
[junitreport] Transform time for class-details.xsl: 271ms
[junitreport] Transform time for class-details.xsl: 180ms
[junitreport] Transform time for class-details.xsl: 411ms
[junitreport] Transform time for class-details.xsl: 120ms
[junitreport] Transform time for class-details.xsl: 130ms
[junitreport] Transform time for classes-list.xsl: 201ms
[junitreport] Transform time for package-summary.xsl: 340ms

BUILD SUCCESSFUL

Total time: 19 seconds


-- 
 St├ęphane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 

-----Original Message-----
From: Martin Andrews [mailto:martin@oopl.com.au]
Sent: Wednesday, February 21, 2001 3:01 AM
To: 'ant-dev@jakarta.apache.org'
Subject: junitreport XSL problem


Hi there, 
I notice that bug has been registered (#645) and is currently in discussion 
about a problem with XSL.  I got the same bug today, so I thought I'd give 
you some more info... 
Hope I can help shed some light on the situation. 
Cheers, 
Marty 


I am running JDK1.3, ANT 1.3 Beta 2, JUnit 3.5 and Xalan 1.2.2. 
My classpath looks like this: 
C:\Products\Junit3.5\junit.jar;C:\Products\xalan-j_1_2_2\xalan.jar;C:\Produc
ts\xalan-j_1_2_2\xerces.jar 
My build.xml file basically works on the JUnit source.  It looks as follows:



<project name="junit" default="build" basedir="."> 
        <target name="init"> 
                <mkdir dir="classes" /> 
                <mkdir dir="reports" /> 
                <mkdir dir="reports/xml" /> 
                <mkdir dir="reports/html" /> 
        </target> 
        <target name="test" depends="init"> 
                <junit printsummary="yes"> 
                        <classpath> 
                                <pathelement location="classes"/> 
                        </classpath> 
                        <formatter type="xml" /> 
                        <batchtest todir="./reports/xml"> 
                                <fileset dir="src"> 
                                        <include name="**/tests/*.java" /> 
                                        <exclude name="**/AllTests.java" /> 
                                </fileset> 
                        </batchtest> 
                </junit> 
                <junitreport todir="./reports/xml"> 
                        <fileset dir="./reports/xml"> 
                                <include name="TEST-*.xml"/> 
                        </fileset> 
                        <report format="frames" todir="./reports/html" /> 
                </junitreport> 
        </target> 
</project> 


When I run the command "ant test", I get the following: 


Buildfile: build.xml 
init: 
test: 
    [junit] Running junit.tests.ActiveTestTest 
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.941 sec 
    [junit] Running junit.tests.AssertTest 
    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.ClassLoaderTest 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.02 sec 
    [junit] TEST junit.tests.ClassLoaderTest FAILED 
    [junit] Running junit.tests.ExceptionTestCaseTest 
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.ExtensionTest 
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.03 sec 
    [junit] Running junit.tests.Failure 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec 
    [junit] TEST junit.tests.Failure FAILED 
    [junit] Running junit.tests.InheritedTestCase 
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.LoadedFromJar 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec 
    [junit] TEST junit.tests.LoadedFromJar FAILED 
    [junit] Running junit.tests.NoTestCaseClass 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec 
    [junit] TEST junit.tests.NoTestCaseClass FAILED 
    [junit] Running junit.tests.NoTestCases 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec 
    [junit] TEST junit.tests.NoTestCases FAILED 
    [junit] Running junit.tests.NotPublicTestCase 
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.01 sec 
    [junit] TEST junit.tests.NotPublicTestCase FAILED 
    [junit] Running junit.tests.NotVoidTestCase 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec 
    [junit] Running junit.tests.OneTestCase 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec 
    [junit] Running junit.tests.OverrideTestCase 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec 
    [junit] Running junit.tests.RepeatedTestTest 
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0 sec 
    [junit] Running junit.tests.SorterTest 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.02 sec 
    [junit] Running junit.tests.StackFilterTest 
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.03 sec 
    [junit] TEST junit.tests.StackFilterTest FAILED 
    [junit] Running junit.tests.Success 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec 
    [junit] Running junit.tests.SuiteTest 
    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.06 sec 
    [junit] Running junit.tests.TestCaseClassLoaderTest 
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.04 sec 
    [junit] TEST junit.tests.TestCaseClassLoaderTest FAILED 
    [junit] Running junit.tests.TestCaseTest 
    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.TestImplementorTest 
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.TestListenerTest 
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.01 sec 
    [junit] Running junit.tests.TextRunnerTest 
    [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 5.878 sec 
    [junit] TEST junit.tests.TextRunnerTest FAILED 
    [junit] Running junit.tests.WasRun 
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec 
    [junit] TEST junit.tests.WasRun FAILED 
XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a
org.apache.xalan.xpath.xdom.XercesLiaison instead! 
XSL Error: SAX Exception 
org.apache.xalan.xslt.XSLProcessorException: 
        at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:919) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643) 
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:454) 
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPack
ageList(AggregateTransformer.java:304)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:233) 
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:169) 
        at org.apache.tools.ant.Target.execute(Target.java:153) 
        at org.apache.tools.ant.Project.runTarget(Project.java:898) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:536) 
        at org.apache.tools.ant.Project.executeTargets(Project.java:510) 
        at org.apache.tools.ant.Main.runBuild(Main.java:421) 
        at org.apache.tools.ant.Main.main(Main.java:149) 
BUILD FAILED 
C:\Projects\JUnit\build.xml:37: Errors while applying transformations 
--- Nested Exception --- 
org.apache.xalan.xslt.XSLProcessorException: 
        at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:919) 
        at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643) 
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:454) 
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPack
ageList(AggregateTransformer.java:304)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:233) 
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:169) 
        at org.apache.tools.ant.Target.execute(Target.java:153) 
        at org.apache.tools.ant.Project.runTarget(Project.java:898) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:536) 
        at org.apache.tools.ant.Project.executeTargets(Project.java:510) 
        at org.apache.tools.ant.Main.runBuild(Main.java:421) 
        at org.apache.tools.ant.Main.main(Main.java:149) 
Total time: 11 seconds 


Mime
View raw message