Skip to content

Commit 04dff7c

Browse files
committed
Support empty test suite
The unit test manager represents tests directly in ^UnitTestRoot as having suite "(root)" - now test coverage is tracked similarly.
1 parent 26395e4 commit 04dff7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cls/TestCoverage/Manager.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ Method OnBeforeTestSuite(dir As %String, suite As %String, testspec As %String,
603603
Set tSC = ..UpdateCoverageTargetsForTestDirectory(dir)
604604
$$$ThrowOnError(tSC)
605605
}
606-
Set ..CurrentTestSuite = suite
606+
Set ..CurrentTestSuite = $Case(suite,"":"(root)",:suite)
607607
Set ..CurrentTestClass = ""
608608
Set ..CurrentTestMethod = ""
609609
If (..CoverageDetail = 1) {
@@ -622,7 +622,7 @@ Method OnAfterTestSuite(dir As %String, suite As %String, testspec As %String, B
622622
Set tSC = $$$OK
623623
Try {
624624
If (..CoverageDetail = 1) {
625-
Set tSC = ..EndCoverageTracking(suite)
625+
Set tSC = ..EndCoverageTracking($Case(suite,"":"(root)",:suite))
626626
}
627627
} Catch e {
628628
Set tSC = e.AsStatus()

0 commit comments

Comments
 (0)