Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 32578 invoked from network); 7 Mar 2008 17:55:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2008 17:55:10 -0000 Received: (qmail 55030 invoked by uid 500); 7 Mar 2008 17:55:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55006 invoked by uid 500); 7 Mar 2008 17:55:04 -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 54951 invoked by uid 99); 7 Mar 2008 17:55:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 09:55:04 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 17:54:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51747234C09F for ; Fri, 7 Mar 2008 09:53:47 -0800 (PST) Message-ID: <2117904283.1204912427332.JavaMail.jira@brutus> Date: Fri, 7 Mar 2008 09:53:47 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Issue Comment Edited: (DERBY-3445) Make it easier to use the EMMA tool to measure the code coverage of the Derby testing In-Reply-To: <1191072750.1203608360231.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3445?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1257= 6300#action_12576300 ]=20 djd edited comment on DERBY-3445 at 3/7/08 9:52 AM: ---------------------------------------------------------------------- Thinking a little more I'm not sure the network server removing its securit= y manager is a good idea. It would allow any code in shutdown hooks to have= free use of the jvm. A better long term solution would be to allow a set of policies to be added= into the network server's default set. E.g. could add this policy file em= ma.policy: grant codebase "... path to emma jars" { // permissions needed } java -jar derbyrun.jar server -additionalPolicy emma.policy start This would then be logically added into the permission set that Derby insta= lls automatically. was (Author: djd): Thinking a little more I'm not sure the network server removing its sec= urity manager is a good idea. It would allow any code in shutdown hooks to = have free use of the jvm. A better long term solution would be to allow a set of policies to be added= into the network server's default set. E.g. could add this policy file: grant codebase "... path to emma jars" { // permissions needed } This would then be logically added into the permission set that Derby insta= lls automatically. =20 > Make it easier to use the EMMA tool to measure the code coverage of the D= erby testing > -------------------------------------------------------------------------= ------------ > > Key: DERBY-3445 > URL: https://issues.apache.org/jira/browse/DERBY-3445 > Project: Derby > Issue Type: Improvement > Components: Build tools > Reporter: Vemund =C3=98stgaard > Assignee: Vemund =C3=98stgaard > Attachments: 3445-emma-clean-fix-diff, 3445-general-diff, 3445-ge= neral-diffv2, 3445-singletest-codeline-jars-diff, 3445-singletest-diff, 344= 5-SysinfoLocaleTest-diff, 3445-testspecific-diff, 3445-testspecific-diffv2 > > > It is a bit tricky to use EMMA to measure code coverage for the derby tes= ting. > Modifications must be made to the source both to avoid problems with the = SecurityManager and individual tests. It would be good if these modifcation= s could be done once and for all so that it was easier for anyone to run th= e tests with EMMA. > It would also be good to have ant tasks that would make it even easier to= run the tests with EMMA. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.