Skip to content

Commit a73b278

Browse files
committed
Trying EndCoverage to capture the monitoring so far up to StartProduction
1 parent edd8db1 commit a73b278

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cls/TestCoverage/Manager.cls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ Method LogAssert(success, action, description, extra, args...)
198198
set $LIST(tProcessIDs, *+1) = $Job
199199
}
200200
set ..ProcessIDs = tProcessIDs
201-
set ^IRIS.TEMPCG($i(^IRIS.TEMPCG)) = tProcessIDs
202-
$$$ThrowOnError(..Monitor.StartWithScope(..LastRelevantTargets, ..LastMetrics, tProcessIDs))
201+
set ^IRIS.TEMPCG($i(^IRIS.TEMPCG)) = $lb("inside logassert", tProcessIDs)
202+
$$$ThrowOnError(..EndCoverageTracking())
203+
$$$ThrowOnError(..StartCoverageTracking())
204+
// $$$ThrowOnError(..Monitor.StartWithScope(..LastRelevantTargets, ..LastMetrics, tProcessIDs))
203205
}
204206
}
205207

@@ -282,7 +284,7 @@ Method StartCoverageTracking() As %Status [ Private ]
282284
set $LIST(tProcessIDs, *+1) = $Job
283285
}
284286
}
285-
// set ^IRIS.TEMPCG($i(^IRIS.TEMPCG)) = tProcessIDs
287+
set ^IRIS.TEMPCG($i(^IRIS.TEMPCG)) = tProcessIDs
286288
Set tMetrics = $ListBuild("RtnLine") _ $Select(..Timing:$ListBuild("Time","TotalTime"),1:"")
287289
Set ..LastRelevantTargets = tRelevantTargets
288290
Set ..LastMetrics = tMetrics

0 commit comments

Comments
 (0)