db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@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
Date Fri, 07 Mar 2008 17:53:47 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576300#action_12576300
] 

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 security 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  emma.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 installs automatically.

      was (Author: djd):
    Thinking a little more I'm not sure the network server removing its security 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 installs automatically.
  
> Make it easier to use the EMMA tool to measure the code coverage of the Derby testing
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-3445
>                 URL: https://issues.apache.org/jira/browse/DERBY-3445
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>            Reporter: Vemund Østgaard
>            Assignee: Vemund Østgaard
>         Attachments: 3445-emma-clean-fix-diff, 3445-general-diff, 3445-general-diffv2,
3445-singletest-codeline-jars-diff, 3445-singletest-diff, 3445-SysinfoLocaleTest-diff, 3445-testspecific-diff,
3445-testspecific-diffv2
>
>
> It is a bit tricky to use EMMA to measure code coverage for the derby testing.
> Modifications must be made to the source both to avoid problems with the SecurityManager
and individual tests. It would be good if these modifcations could be done once and for all
so that it was easier for anyone to run the tests with EMMA.
> It would also be good to have ant tasks that would make it even easier to run the tests
with EMMA.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message