cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russ Hatch (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-8953) ability to run jacoco coverage with a specific patch
Date Wed, 11 Mar 2015 20:42:41 GMT
Russ Hatch created CASSANDRA-8953:

             Summary: ability to run jacoco coverage with a specific patch
                 Key: CASSANDRA-8953
             Project: Cassandra
          Issue Type: Test
            Reporter: Russ Hatch
            Assignee: Russ Hatch

It would be very nice to have code coverage analysis for specific patches (or any other way
of isolating a change, like a topic branch with a patch applied).

This would ideally be a nice way for committers to see how much of a new patch gets exercised
by unit (and possibly dtests as well).

A first iteration of this capability might just be:
  * getting a list of files a patch alters
  * assuming what tests are affected based on source file names
  * running that set of units tests and reporting with jacoco
  * figuring out which lines touched by the diff are covered or not (if you alter a line you
should be the person to add tests).

  the final nice to have would be support for functional tests as part of this system, but
I'm unsure presently how we can do this without running the entire dtest suite which is a
bit onerous.

There are two github projects which might be interest for this endeavor. The first one converts
jacoco coverage data to cobertura format, and the second one can take cobertura data and calculate
diff coverage:

This message was sent by Atlassian JIRA

View raw message