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] Updated: (DERBY-3445) Make it easier to use the EMMA tool to measure the code coverage of the Derby testing
Date Wed, 05 Mar 2008 12:01:41 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vemund Østgaard updated DERBY-3445:
-----------------------------------

    Attachment: 3445-emma-clean-fix-diff

Attaching a patch "3445-emma-clean-fix-diff" with a one-line fix for the <emma-clean>
target, so it doesn't fail when there is no directory to remove.

About the missing link to sources. Yes, I have been compiling with debug=true (and sane=true).
I tried with debug=false, and saw the following written by emma-report:

   [report] not all instrumented classes were compiled with source file
   [report] debug data: no sources will be embedded in the report.
   [report] line coverage requested in a report of type [html] but
   [report] not all instrumented classes were compiled with line number
   [report] debug data: this column will be removed from the report.

This report did not contain any links to the source, so it seems that you must compile with
debug=true to get this.

I'll add a note about this to the wikipage.

> 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