Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1090

Consistent statistics reporting in IDE and HTML reports for subpackages

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Fix
    • open-source
    • Reporting
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      See https://answers.atlassian.com/questions/11664/package-summary-including-sub-packages

      A problem is as follows.

      In IDE (IntelliJ/Eclipse) in the Coverage view when we see statistics for given package it is a aggregated summary of the package and all its subpackages. By clicking "Flatten packages" we can see statistics for a package without subpackages. See idea1.png.

      In HTML report we can see aggregated coverage only for the whole project. When we click on a certain package, we see statistics gathered only from classes from given package and not its subpackages. See html1.png and html2.png.

      The expected behaviour is as follows:

      1) When we click on the "Coverage" link in top-left frame in HTML report, the functionality shall be as it is now. I.e. it should open in the right (main) frame a list of packages, a statistics panel in the top-right corner will show stats for whole project, clicking on a package on the list will open a package details frame with stats in top-right corner for the package only.

      2) When we click on the "Coverage (Aggregate)" link in top-left frame, it will open in right frame list of package and a statistics panel for whole project (as it is now). But when user clicks on a package from list it will open a different package details frame with aggregated stats in top-right corner for the package and all subpackages.

      3) A stats panel
      for option 1 shall have a label like "Statistics for package (without subpackages) <package name>" and
      for option 2 like "Statistics for package (with subpackages) <package name>"

      4) A stats panel should have a link "show with subpackages" / "show without subpackages" for easy switch between reports.

      See html3.png

      Update:

      In new HTML report introduced in Clover 4, a package-level page could look this way:

      clover4-adg-package.png

      so that toggle buttons would be similar to those a project-level page:

      clover4-adg-project.png

      Attachments

        1. clov-1090.zip
          317 kB
        2. clover4-adg-package.png
          clover4-adg-package.png
          59 kB
        3. clover4-adg-project.png
          clover4-adg-project.png
          53 kB
        4. html1.png
          html1.png
          102 kB
        5. html2.png
          html2.png
          39 kB
        6. html3.png
          html3.png
          115 kB
        7. idea1.png
          idea1.png
          71 kB

        Activity

          People

            Unassigned Unassigned
            mparfianowicz Marek Parfianowicz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified