Skip to content

Commit d96b8e9

Browse files
committed
[release] src/testUtils: adjust file path expansion regexp to capture subtest failures
Looks like verbose mode handling (json mode) already handles subtest error messages as expected. Fixes #956 Change-Id: I086076f1ab5435bd51f0956ec74e62d59e323531 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/273048 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Peter Weinberger <[email protected]> (cherry picked from commit 8ea68d8) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/276212
1 parent 38dce0d commit d96b8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function processTestResultLineInStandardMode(
497497
outputChannel: vscode.OutputChannel) {
498498
// 1=ok/FAIL/?, 2=package, 3=time/(cached)/[no test files]
499499
const packageResultLineRE = /^(ok|FAIL|\?)\s+(\S+)\s+([0-9\.]+s|\(cached\)|\[no test files\])/;
500-
const lineWithErrorRE = /^(\t|\s\s\s\s)\S/;
500+
const lineWithErrorRE = /^\s+(\S+\.go):(\d+):/;
501501

502502
return (line: string) => {
503503
testResultLines.push(line);

0 commit comments

Comments
 (0)