[
https://issues.apache.org/jira/browse/DERBY-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vemund Østgaard updated DERBY-3445:
-----------------------------------
Attachment: 3445-singletest-diff
3445-SysinfoLocaleTest-diff
Thank you all for the comments and suggestions, I've added two more patches
based on the feedback.
3445-SysinfoLocaleTest-diff has a fix for the bug pointed out by Dan.
3445-singletest-diff is a response to Thomas' wish for a way to run a single
test with EMMA using ant.
- Added a task <junit-single> which is in turn used by a task <emma-single>.
Both need the property derby.junit.testclass set to some classname that will be
attempted run as a junit test/suite.
So, doing:
"ant emma-single
-Dderby.junit.testclass=org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest"
should run that particular test with codecoverage.
I also changed my use of ${junit} to ${javatools.dir}/junit.jar, as the first
property is set in tools/ant/extrapath.properties and those properties are only
loaded for compilation and not when just running a junit test.
I'll write up some information on what you need to test with EMMA and how to
use the new junit and emma targets, probably on monday. I guess I will add some
info to the junit wiki page and perhaps a new page for EMMA, and add some more
explanations to the build.xml file.
> 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-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.