Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6202

Overall coverage measures should be computed by the platform

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Coverage & Tests, Scanner
    • Labels:
      None

      Description

      The computation of overall coverage measures should be done by the platform because there's no need for language plugins to do this computation on their side. Doing this in the platform will make things easier and more consistent.

      This means:

      • Prevent language plugins from storing any measure related to those metrics
      • Not computing "Overall condition coverage" related metrics because we deprecate them (see SONAR-6225)
      • Compute the following metrics:
        • overall_lines_to_cover
          • => must be set to lines_to_cover or it_lines_to_cover
        • new_overall_lines_to_cover
          • => must be set to new_lines_to_cover or new_it_lines_to_cover
        • overall_uncovered_lines
          • => must be set to either uncovered_lines or it_uncovered_lines, or if both exist it must be a combination of those two
        • new_overall_uncovered_lines
          • => same thing as for overall_uncovered_lines (but with new_* metrics)
        • overall_coverage_line_hits_data
          • => same thing as for overall_uncovered_lines (but with *_data metrics)
        • overall_coverage, new_overall_coverage, overall_line_coverage, new_overall_line_coverage
          • => same formulas must be applied as the ones applied for UT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                henryju OLD - Julien HENRY
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: