You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Vemund Østgaard (JIRA)" <ji...@apache.org> on 2008/04/02 16:21:25 UTC

[jira] Commented: (DERBY-3445) Make it easier to use the EMMA tool to measure the code coverage of the Derby testing

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

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

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

I'm pondering more about how to best solve this issue. How about having some way of triggering this behavior, a property or something else, that would only be used for the purpose of testing with EMMA? If property X is set, the network server removes the security manager right before doing shutdown, but only in the case were it has installed a security manager itself with the default policy.

What is the view on adding such an interface (property or similar) to the product, which is only intended for testing purposes?


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