Skip to content

Commit 62e260f

Browse files
committed
clean up when ms code coverage does not collect
1 parent aab53e4 commit 62e260f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SharedProject/Impl/TestContainerDiscovery/TestContainerDiscoverer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ private async Task TestExecutionFinishedAsync(IOperation operation)
141141
{
142142
await TestExecutionFinishedCollectionAsync(operation, testOperation);
143143
}
144+
else
145+
{
146+
if (msCodeCoverageCollectionStatus == MsCodeCoverageCollectionStatus.Collecting)
147+
{
148+
await msCodeCoverageRunSettingsService.TestExecutionNotFinishedAsync(testOperation);
149+
}
150+
}
144151
}
145152

146153
private (bool should, ITestOperation testOperation) ShouldConditionallyCollectWhenTestExecutionFinished(IOperation operation)

0 commit comments

Comments
 (0)