Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-1897

Feed metric 'executable_lines_data' when SQ >= 6.2

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4
    • Component/s: Coverage
    • Labels:
      None

      Description

      As a replacement of the "force coverage to zero" feature, the Java plugin should provide for every executable file a measure that will tell platform what are executable lines (ie lines to cover by tests).

      Note that the metric was introduced before 6.2 but due to an issue, measure should only be provided when runtime is 6.2+.

      This metric is not completely straighforward to compute : we want to be as close as possible to what JaCoCo consider as an executable line (to avoid huge differences in lines to cover between an analysis with or without coverage ) and support most of the (weird) formatting.
      As JaCoCo is relying on bytecode and this metric will rely on source : there will be some limited differences (implicit constructors for instance, or some corner cases of lambdas).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nicolas.peru Nicolas Peru
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: