Index: openacs-4/packages/acs-automated-testing/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/www/admin/index.tcl,v diff -u -r1.16.2.4 -r1.16.2.5 --- openacs-4/packages/acs-automated-testing/www/admin/index.tcl 30 Aug 2019 17:58:27 -0000 1.16.2.4 +++ openacs-4/packages/acs-automated-testing/www/admin/index.tcl 2 Sep 2019 13:13:10 -0000 1.16.2.5 @@ -34,9 +34,12 @@ append title ", all categories" } -set global_test_coverage [aa::coverage::proc_coverage] -set global_test_coverage_percent [dict get $global_test_coverage coverage] -set global_test_coverage_level [aa::coverage::proc_coverage_level $global_test_coverage_percent] +# Calculate package proc test coverage +if { $view_by eq "package" } { + set global_test_coverage [aa::coverage::proc_coverage] + set global_test_coverage_percent [dict get $global_test_coverage coverage] + set global_test_coverage_level [aa::coverage::proc_coverage_level $global_test_coverage_percent] +} foreach testcase [nsv_get aa_test cases] { lassign $testcase testcase_id testcase_desc . package_key categories