Skip to content

Commit 1a0a3a3

Browse files
committed
Open code coverage in correct run profile
1 parent b78d7a2 commit 1a0a3a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/TestExplorer/TestRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ export class TestRunner {
335335
}
336336
await runner.runHandler(token);
337337
await runner.testRun.computeCoverage();
338+
await vscode.commands.executeCommand("testing.openCoverage");
338339
},
339340
false,
340341
runnableTag
@@ -352,7 +353,6 @@ export class TestRunner {
352353
);
353354
onCreateTestRun.fire(runner.testRun);
354355
await runner.runHandler(token);
355-
await vscode.commands.executeCommand("testing.openCoverage");
356356
},
357357
false,
358358
runnableTag

test/suite/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ suite("Test Explorer Suite", function () {
117117
}
118118
});
119119

120-
[RunProfileName.run, RunProfileName.coverage, RunProfileName.runParallel].forEach(
120+
// Do coverage last as it does a full rebuild, causing the stage after it to have to rebuild as well.
121+
[RunProfileName.run, RunProfileName.runParallel, RunProfileName.coverage].forEach(
121122
runProfile => {
122123
let xcTestFailureMessage: string;
123124

0 commit comments

Comments
 (0)