(schemeContent: string)
| 163 | } |
| 164 | |
| 165 | function parseSchemeTargets(schemeContent: string): ReferencedTestTarget[] { |
| 166 | const targets: ReferencedTestTarget[] = []; |
| 167 | const testableMatches = [ |
| 168 | ...schemeContent.matchAll(/<TestableReference([\s\S]*?)<\/TestableReference>/g), |
| 169 | ]; |
| 170 | for (const match of testableMatches) { |
| 171 | const block = match[1]; |
| 172 | if (extractAttributeValue(block, 'skipped') === 'YES') { |
| 173 | continue; |
| 174 | } |
| 175 | |
| 176 | const blueprintName = extractAttributeValue(block, 'BlueprintName'); |
| 177 | if (!blueprintName) { |
| 178 | continue; |
| 179 | } |
| 180 | |
| 181 | targets.push({ |
| 182 | name: blueprintName, |
| 183 | containerPath: extractAttributeValue(block, 'ReferencedContainer'), |
| 184 | }); |
| 185 | } |
| 186 | |
| 187 | return targets; |
| 188 | } |
| 189 | |
| 190 | async function parseTestPlanTargets( |
| 191 | schemeContent: string, |
no test coverage detected