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

Russ Hatch commented on CASSANDRA-7226:
---------------------------------------

JaCoCo is looking good so far. Initially I tried to use their pre-built stuff 
for ant, but couldn't seem to get a report generated (the jacoco ant stuff says 
requires ant 1.7, and lib/ seems to include 1.6.5 so that may have been part of 
the problem).

It turned out to be pretty easy to just include the jacoco agent in the ant 
"testmacro" macro. The agent records it's execution information and then that 
is analyzed with the class files to create the report.

At this point just need to get it properly integrated into the build.xml, and 
then sort out tying it in with ccm for dtest coverage.

!coverage.png!

> get code coverage working again (cobertura or other)
> ----------------------------------------------------
>
>                 Key: CASSANDRA-7226
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7226
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Russ Hatch
>            Assignee: Russ Hatch
>         Attachments: coverage.png
>
>
> We need to sort out code coverage again, for unit and cassandra-dtest tests. 
> Preferably the same tool for both.
> Seems like cobertura project activity has dwindled. Jacoco might be a viable 
> alternative to cobertura. Jacoco can can instrument running bytecode so I 
> think it could also work for dtests (does require an agent, not sure if 
> that's a problem yet). If using an agent is problematic looks like it can 
> also work with offline bytecode though I don't see how that could benefit 
> dtests. Project seems pretty active, with a release just last week.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to