Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8930

Cumulative code coverage calculation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3, 2.0.2-alpha
    • 2.0.3-alpha, 0.23.5
    • test
    • None

    Description

      When analyzing code coverage in Hadoop Core, we noticed that some coverage gaps are caused by the way the coverage calculation is done currently. More specifically, right now coverage can not be calculated for the whole Core at once, but can only be calculated separately for top level modules like common-project, hadoop-hdfs-project etc.

      At the same time, some code in particular modules is tested by tests in other modules of Core. For example, "org.apache.hadoop.fs" from hadoop-common-project/hadoop-common is not covered there but it's covered by tests under hadoop-hdfs-project.

      To enable calculation of "cumulative" code coverage it's needed to move Clover profile definition up one level, from hadoop-project/pom.xml to the top level pom.xml (hadoop-main).

      Patch both for 0.23 and 2.x will be attached shortly.

      Attachments

        1. HADOOP-8930-branch-0.23.patch
          5 kB
          Andrey Klochkov
        2. HADOOP-8930.patch
          6 kB
          Andrey Klochkov

        Activity

          People

            aklochkov Andrey Klochkov
            aklochkov Andrey Klochkov
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: