in src/test-runner/run-tracker.ts [285:309]
private prepareCurrentRun() {
if (this.request.include === undefined) {
return
}
for (const testItem of this.request.include) {
this.recursivelyCollectChildren(
this.allTests,
testItem,
undefined,
TestCaseStatus.Pending
)
}
// Make items readily available for lookup.
this.testsByLookupKey = new Map<string, TestCaseInfo>()
this.buildTargets = new Map<string, BuildTarget>()
for (const item of this) {
const lookupKey = this.languageToolManager
.getLanguageTools(item.target)
.mapTestCaseInfoToLookupKey(item)
if (lookupKey) this.testsByLookupKey.set(lookupKey, item)
if (item.target) this.buildTargets.set(item.target.id.uri, item.target)
}
}