Skip to content

Commit 4c44a38

Browse files
committed
Add test coverage integration tests
1 parent 21f5bac commit 4c44a38

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/TestExplorer/TestRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class TestRunner {
292292
// Add coverage profile
293293
controller.createRunProfile(
294294
RunProfileName.coverage,
295-
vscode.TestRunProfileKind.Run,
295+
vscode.TestRunProfileKind.Coverage,
296296
async (request, token) => {
297297
const runner = new TestRunner(request, folderContext, controller);
298298
onCreateTestRun.fire(runner.testRun);

src/tasks/TaskQueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class TaskOperation implements SwiftOperation {
7171
workspaceContext: WorkspaceContext,
7272
token?: vscode.CancellationToken
7373
): Promise<number | undefined> {
74-
workspaceContext.outputChannel.log(`Exec Task: ${this.task.detail}`);
74+
workspaceContext.outputChannel.log(`Exec Task: ${this.task.detail ?? this.task.name}`);
7575
return workspaceContext.tasks.executeTaskAndWait(this.task, token);
7676
}
7777
}

test/suite/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ suite("Test Explorer Suite", function () {
113113
}
114114
});
115115

116-
// TODO: Add RunProfileName.coverage once https://github.com/swift-server/vscode-swift/pull/807 is merged.
117-
[RunProfileName.run].forEach(runProfile => {
116+
[RunProfileName.run, RunProfileName.coverage].forEach(runProfile => {
118117
suite(runProfile, () => {
119118
suite("swift-testing", function () {
120119
suiteSetup(function () {

0 commit comments

Comments
 (0)