Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2266

Integrate JaCoCo Coverage Library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • tests
    • Patch

    Description

      I would like to propose integration of JaCoCo coverage library with ZooKeeper.

      Purposes

      • To find poorly covered methods, and improve JUnit testcases to cover them
      • To estimate causes of flaky testcases (e.g. ZOOKEEPER-2080, ZOOKEEPER-2252, ZOOKEEPER-1868) by comparing reports from succeeded experiments and failed ones (I'm recently interested in how we can systematically realize this.)

      Advantages of JaCoCo

      Usage

      $ ant test #(plus optionally, -Dtestcase=.. -Dtest.method=..)
      $ ant jacoco-report
      $ x-www-browser build/test/jacoco/reports/index.html &

      Example: jacoco-report-example.zip

      Possible Future Work

      • Integrate to Jenkins buildbot so that we can check coverage after each of builds

      Attachments

        1. ZOOKEEPER-2266-v1.patch
          16 kB
          Akihiro Suda
        2. jacoco-report-example.zip
          1.87 MB
          Akihiro Suda
        3. ZOOKEEPER-2266-v2.patch
          17 kB
          Akihiro Suda
        4. ZOOKEEPER-2266-v3.patch
          6 kB
          Akihiro Suda
        5. ZOOKEEPER-2266-v4.patch
          9 kB
          Akihiro Suda

        Issue Links

          Activity

            People

              nkalmar Norbert Kalmár
              suda Akihiro Suda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m