(targets: string[], extraArgs: string = '')
| 237 | } |
| 238 | |
| 239 | async testTargets(targets: string[], extraArgs: string = ''): Promise<CommandResult> { |
| 240 | const targetsString = targets.join(' '); |
| 241 | const commandTestTarget = `test ${targetsString} ${extraArgs}`; |
| 242 | |
| 243 | return await this.spawnCommand(commandTestTarget, 'inherit', extraArgs).catch(() => { |
| 244 | throw new CliError(`Failed to test targets: ${targetsString}`); |
| 245 | }); |
| 246 | } |
| 247 | |
| 248 | async getVersion(): Promise<[number, string, string]> { |
| 249 | const commandBazelInfoVersion = `version --gnu_format`; |
no test coverage detected