Skip to content

Commit d308588

Browse files
committed
merged version 3.1.1
2 parents 21f3a7d + a3392ec commit d308588

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111
- Now the code strips leading and trailing whitespace from coverage.list, so "PackageName.PKG " will still be loaded properly
1212

13+
## [3.1.1] - Unreleased
14+
15+
### Fixed
16+
- #39: Fixed bug where results viewer gave divide by zero error when there were 0 executed methods in the covered code
17+
1318
## [3.1.0] - 2024-07-05
1419

1520
### Added
@@ -30,4 +35,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3035
- #25: Fix so the tool works on 2023.1
3136

3237
## [2.1.3] - 2022-03-30
33-
- Last released version before CHANGELOG existed.
38+
- Last released version before CHANGELOG existed.

cls/TestCoverage/UI/AggregateResultViewer.cls

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ XData Contents [ XMLNamespace = "http://www.intersystems.com/zen" ]
2525
ROUND(100*CoveredLines/ExecutableLines,2) PercentCoverage,
2626
ExecutableLines as ExecutableLines,
2727
CoveredLines As LinesCovered,
28-
ROUND(100*CoveredMethods/ExecutableMethods,2) MethodCoverage,
28+
CASE ExecutableMethods WHEN 0 THEN NULL ELSE ROUND(100*CoveredMethods/ExecutableMethods,2) END As MethodCoverage,
2929
ExecutableMethods As ExecutableMethods,
3030
CoveredMethods As MethodsCovered,
3131
'' as Info,
@@ -100,4 +100,3 @@ ClientMethod drawCell(value, row, col) [ Language = javascript ]
100100
}
101101

102102
}
103-

0 commit comments

Comments
 (0)