Details
-
Suggestion
-
Resolution: Won't Fix
-
None
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:
so that toggle buttons would be similar to those a project-level page: