db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6736) The jacoco-junit target fails to store coverage data for some sub-suites
Date Mon, 15 Sep 2014 14:10:34 GMT

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

ASF subversion and git services commented on DERBY-6736:

Commit 1625037 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1625037 ]

DERBY-6736: The jacoco-junit target fails to store coverage data for some sub-suites

Set the jacoco.active property to the empty string when the tests run
under JaCoCo. The code that did this was removed by mistake in

> The jacoco-junit target fails to store coverage data for some sub-suites
> ------------------------------------------------------------------------
>                 Key: DERBY-6736
>                 URL: https://issues.apache.org/jira/browse/DERBY-6736
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d6736-1a.diff
> The console log for the code coverage test runs at https://builds.apache.org/job/Derby-JaCoCo/
shows that JaCoCo fails to write coverage data for the following test suites:
> lang
> jdbcapi
> store
> engine
> encryption
> It is caused by the following permissions-related exception:
> {noformat}
>     [junit] java.security.AccessControlException: access denied ("java.io.FilePermission"
>     [junit] 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
>     [junit] 	at java.security.AccessController.checkPermission(AccessController.java:559)
>     [junit] 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>     [junit] 	at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
>     [junit] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
>     [junit] 	at org.jacoco.agent.rt.internal_9dd1198.output.FileOutput.openFile(FileOutput.java:67)
>     [junit] 	at org.jacoco.agent.rt.internal_9dd1198.output.FileOutput.writeExecutionData(FileOutput.java:53)
>     [junit] 	at org.jacoco.agent.rt.internal_9dd1198.Agent.shutdown(Agent.java:143)
>     [junit] 	at org.jacoco.agent.rt.internal_9dd1198.Agent$1.run(Agent.java:60)
> {noformat}
> The result of this is that the coverage report shows lower coverage than what's actually
covered by the tests.

This message was sent by Atlassian JIRA

View raw message