in src/test-runner/runner.ts [34:68]
private setupRunProfiles() {
this.runProfiles = new Map()
// Main run profile
const mainRunProfile = this.testCaseStore.testController.createRunProfile(
'Run',
vscode.TestRunProfileKind.Run,
this.runHandler.bind(this)
)
this.ctx.subscriptions.push(mainRunProfile)
this.runProfiles.set(vscode.TestRunProfileKind.Run, mainRunProfile)
// Coverage run profile
const coverageRunProfile =
this.testCaseStore.testController.createRunProfile(
'Run with Coverage',
vscode.TestRunProfileKind.Coverage,
this.runHandler.bind(this)
)
this.ctx.subscriptions.push(coverageRunProfile)
this.runProfiles.set(vscode.TestRunProfileKind.Coverage, coverageRunProfile)
coverageRunProfile.loadDetailedCoverage =
this.coverageTracker.loadDetailedCoverage.bind(this.coverageTracker)
// Debug run profile, added only when enabled.
if (getExtensionSetting(SettingName.DEBUG_ENABLED)) {
const debugRunProfile =
this.testCaseStore.testController.createRunProfile(
'Run with Debug',
vscode.TestRunProfileKind.Debug,
this.runHandler.bind(this)
)
this.runProfiles.set(vscode.TestRunProfileKind.Debug, debugRunProfile)
}
}