Skip to content

Commit

Permalink
chore(CTestDriver): conditionally skip project building according to …
Browse files Browse the repository at this point in the history
…`cmake.buildBeforeRun` config entry
  • Loading branch information
Dabsunter committed Jan 15, 2025
1 parent 85ffa5c commit 9d0993d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ctest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,11 @@ export class CTestDriver implements vscode.Disposable {
}

private async buildTests(tests: vscode.TestItem[], run: vscode.TestRun): Promise<boolean> {
// If buildBeforeRun is set to false, we skip the build step
if (!this.ws.config.buildBeforeRun) {
return true;
}

// Folder => status
const builtFolder = new Map<string, number>();
let status: number = 0;
Expand Down

0 comments on commit 9d0993d

Please sign in to comment.