From cc6a4a08e0805d0310f50226b3ee86350ae469c5 Mon Sep 17 00:00:00 2001 From: eleanorjboyd Date: Wed, 25 Sep 2024 13:55:52 -0700 Subject: [PATCH] fix path for windows --- src/client/testing/testController/common/resultResolver.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/client/testing/testController/common/resultResolver.ts b/src/client/testing/testController/common/resultResolver.ts index 5e867882a2df..0788c224b0cc 100644 --- a/src/client/testing/testController/common/resultResolver.ts +++ b/src/client/testing/testController/common/resultResolver.ts @@ -133,11 +133,6 @@ export class PythonResultResolver implements ITestResultResolver { } else { this._resolveExecution(payload as ExecutionTestPayload, runInstance); } - if ('coverage' in payload) { - // coverage data is sent once per connection - traceVerbose('Coverage data received.'); - this._resolveCoverage(payload as CoveragePayload, runInstance); - } } public _resolveCoverage(payload: CoveragePayload, runInstance: TestRun): void { @@ -180,7 +175,7 @@ export class PythonResultResolver implements ITestResultResolver { detailedCoverageArray.push(statementCoverage); } - this.detailedCoverageMap.set(fileNameStr, detailedCoverageArray); + this.detailedCoverageMap.set(uri.fsPath, detailedCoverageArray); } }