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] Commented: (DERBY-3445) Make it easier to use the EMMA tool to measure the code coverage of the Derby testing
Date Thu, 28 Feb 2008 21:25:56 GMT

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

Daniel John Debrunner commented on DERBY-3445:
----------------------------------------------

Won't the changes to SysinfoLocaleTest make the test fail if the tests are run without EMMA
jars in the classpath, which is the typical case?

     private static void runSysinfo() throws Exception {
         final String className = "org.apache.derby.tools.sysinfo";
+        final String emmaClassName = "com.vladium.emma.EMMAException";
         URL[] urls = {
             Class.forName(className).getProtectionDomain().
+                    getCodeSource().getLocation(),
+            Class.forName(emmaClassName).getProtectionDomain().
                     getCodeSource().getLocation()
         };


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