Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64938 invoked from network); 26 Oct 2006 21:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 21:40:05 -0000 Received: (qmail 30666 invoked by uid 500); 26 Oct 2006 21:40:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30641 invoked by uid 500); 26 Oct 2006 21:40:16 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 30632 invoked by uid 99); 26 Oct 2006 21:40:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 14:40:16 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ksunithaghm@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 14:40:04 -0700 Received: by wx-out-0506.google.com with SMTP id i27so511211wxd for ; Thu, 26 Oct 2006 14:39:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=e3DmWVlA5uEMSaB0OT4SOY1QOVn1GvTREYqfmqwN1aX+1QdjAIeR3yqptJnrxYlksj3RtsGUxlpGcXIhtSIpZpPO2yqG5pCJhE58bumiVuqK2FfFrUEPHjwG2ulvtQN0Jzbgo2T2V/Kh6HCmeXJAvO9cACwX0ccfB/Tk/74aP1Y= Received: by 10.90.52.2 with SMTP id z2mr2007185agz; Thu, 26 Oct 2006 14:39:43 -0700 (PDT) Received: from ?9.30.38.113? ( [129.42.184.35]) by mx.google.com with ESMTP id 29sm2804335wrl.2006.10.26.14.39.41; Thu, 26 Oct 2006 14:39:42 -0700 (PDT) Message-ID: <45412AA7.9090405@gmail.com> Date: Thu, 26 Oct 2006 14:37:43 -0700 From: Sunitha Kambhampati User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: DERBY-2006, adding ant task to generate html report. (was Re: Test count dropping?) References: <453FEF94.3070300@amberpoint.com> <4540C51E.5020709@amberpoint.com> <4540D5BD.7010401@apache.org> <54ac72d70610261148v1d59ce38p1ac1c0f1dc8eafff@mail.gmail.com> In-Reply-To: <54ac72d70610261148v1d59ce38p1ac1c0f1dc8eafff@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.