Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5475

Improve test coverage accuracy by aggregating modules

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.33.0
    • None

    Description

      Currently the test coverage report is computed per module (using jacocoTestReport task) and upload it to Sonar as is. Considering the modules in isolation leads to some modules have rather low coverage.

      Example

      For testkit module, Sonar reports only 11% coverage at the moment of submitting this ticket:
      https://sonarcloud.io/component_measures?metric=coverage&selected=apache_calcite%3Atestkit%2Fsrc%2Fmain&id=apache_calcite

      Some classes such as SqlOperatorTest are as low as 1%.

      The testkit module does not have itself many tests covering its own classes (under src/main) so if we don't consider how it is used by other modules we get the false impression that it is not sufficiently covered.

      The test coverage accuracy can be improved by aggregating the results from all modules together using the jacoco_report_aggregation_plugin.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m