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 Wed, 27 Feb 2008 13:37:51 GMT

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

Vemund Østgaard commented on DERBY-3445:

I haven't found any problems with this change and ant 1.6. My experience with ant 1.6 is that
to get things to work you need to use one of the workarounds described here: http://ant.apache.org/faq.html#delegating-classloader-1.6:

   1.  put all external libraries you need in CLASSPATH as well this is not what you want,
otherwise you wouldn't have found this FAQ entry.
   2. put all external libraries you need in ANT_HOME/lib or .ant/lib. This probably still
isn't what you want, but you might reconsider the .ant/lib option.
   3. Always start Ant with the -lib command line switch and point to your external libraries
(or the directories holding them).
   4. remove the class that loads the external library from the coreloader.

So, basically my change has no effect with ant 1.6, it neither helps nor harms as far as I
can understand. I am able to test with ant 1.6 if I for instance use the -lib option with

If you are using ant 1.7 with my patch you just need to have junit.jar under your tools/java/
directory where the ant properties expect it to be. In my work environment that is a better
solution than the various workarounds for ant 1.6.

> 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-general-diff, 3445-general-diffv2, 3445-testspecific-diff,
> 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.

View raw message