accumulo-notifications 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] (ACCUMULO-1944) Cobertura not working for functional tests in 1.5.x and earlier
Date Mon, 06 Jan 2014 19:18:50 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13863275#comment-13863275
] 

ASF subversion and git services commented on ACCUMULO-1944:
-----------------------------------------------------------

Commit 950f144c8e3517053af704189f0fdfd769487dfd in branch refs/heads/master from [~bhavanki]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=950f144 ]

ACCUMULO-1944 Fix coverage for functional tests

The -C flag for test/system/auto/run.py did not work. This changeset
allows it to work again if a functional Cobertura installation is
placed under $ACCUMULO_HOME/lib/test/cobertura.

The code for producing instrumented Accumulo code was inactive and
out of date. It was reworked so that, if -C is passed, the Accumulo
JARs are instrumented and placed into a location ahead of their
standard location in the test classpath. (If -C is not passed, any
instrumented JARs are removed.) The classpath is also dynamically
adjusted to include whatever Cobertura JAR is available; its name
includes a version number (as of 2.0.x).

The command-line scripts shipped with Cobertura 2.0.x are out of
date and do not work out of the box. Pull request #102 was submitted
to cobertura/cobertura on Github to fix the problem; in lieu of that,
the scripts must be manually updated to use a correct classpath.

Tested with Cobertura 2.0.3 / 2.0.4-SNAPSHOT with needed script
updates.


> Cobertura not working for functional tests in 1.5.x and earlier
> ---------------------------------------------------------------
>
>                 Key: ACCUMULO-1944
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1944
>             Project: Accumulo
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.4.4, 1.5.0
>            Reporter: Bill Havanki
>            Assignee: Bill Havanki
>              Labels: cobertura, testing
>             Fix For: 1.4.5, 1.5.1
>
>         Attachments: ACCUMULO-1944-1.4.patch, ACCUMULO-1944-1.4.v2.patch, ACCUMULO-1944-1.5.patch,
ACCUMULO-1944-1.5.v2.patch
>
>
> The -C argument to test/system/auto/run.py should enable running instrumented functional
tests to analyze coverage using Cobertura. The capability is not functional; code is not instrumented
even when Cobertura is available, and tests are not run with the instrumented code.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message