db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vemund Østgaard (JIRA) <j...@apache.org>
Subject [jira] Commented: (DERBY-3445) Make it easier to use the EMMA tool to measure the code coverage of the Derby testing
Date Mon, 31 Mar 2008 15:06:24 GMT

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

Vemund Østgaard commented on DERBY-3445:
----------------------------------------

> 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.

As far as I understand your suggestion is to add a new option to the network server (-additionalPolicy,
or something along those lines). This new option would then only have an effect if the network
server is started in a way that causes it to install its own default security policy. The
effect would then be to merge the contents of the default policy file (server.policy) with
whatever policy file is added with the new argument (emma.policy) into a new file, and then
set the java.security.policy property to point to this file before installing a SecurityManager.


Would this be a feature added just to be able to test the product with EMMA, or do you think
of other use cases as well?
Real users would be able to put a policy file under ${user.home}/.java.policy or just set
-Djava.security.policy, so I guess they wouldn't have a need for it. 


> 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