db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunitha Kambhampati <ksunitha...@gmail.com>
Subject DERBY-2006, adding ant task to generate html report. (was Re: Test count dropping?)
Date Thu, 26 Oct 2006 21:37:43 GMT
Andrew McIntyre wrote:

>
> I've attached a patch to DERBY-2006 that adds basic support for this
> to our top-level build.xml. With the patch running 'ant junitreport'
> runs the All suite and generates an HTML report.
>
Thanks Andrew for working on this. I applied the patch attached to 
derby-2006 and after adding junit.jar to the $ANT_HOME/lib path, I can 
run the junitreport task.

First time I ran, my classpath settings were not correct so the tests 
didnt run but I got the report saying classnotfound so that was expected.

Second time I ran, I am getting this error:
[junitreport] [Fatal Error] :-1:-1: Premature end of file.
[junitreport] The file 
C:\workghm\svnclient\ks_trunk\junit\TEST-org.apache.derbyTesting.functionTests.suites.All.xml

is not a valid XML document. It is possibly corrupted.

I see a file: 
/junit/org/apache/derbyTesting/functionTests/suites/0_All.html  amd that 
has the following exception

org.apache.derbyTesting.functionTests.suites.All

|java.lang.ClassNotFoundException: 
org.apache.derbyTesting.functionTests.suites.All at 
java.net.URLClassLoader.findClass(URLClassLoader.java:376) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:572) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:504) at 
java.lang.Class.forName1(Native Method) at 
java.lang.Class.forName(Class.java:180)

|What could I be doing wrong ?

Here is the output :
ks_trunk>ant junitreport
Buildfile: build.xml

junit-init:

junit-all:

junit-oneclass:
    [junit] Running org.apache.derbyTesting.functionTests.suites.All
    [junit] Exception in thread "main" 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission setIO)
    [junit]     at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled 
Code))
    [junit]     at 
java.security.AccessController.checkPermission(AccessController.java(Compiled 
Code))
    [junit]     at 
java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled 
Code))
    [junit]     at java.lang.System.checkIO(System.java:225)
    [junit]     at java.lang.System.setOut(System.java:189)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:309)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
    [junit] Test org.apache.derbyTesting.functionTests.suites.All FAILED

junitreport:
[junitreport] [Fatal Error] :-1:-1: Premature end of file.
[junitreport] The file 
C:\workghm\svnclient\ks_trunk\junit\TEST-org.apache.derbyTesting.functionTests.suites.All.xml

is not a valid XML document. It is possibly corrupted.
[junitreport] Transform time: 741ms

BUILD SUCCESSFUL
Total time: 9 minutes 29 seconds
ks_trunk>
----------------

Thanks,
Sunitha.

Mime
View raw message