Skip to content

Commit 7beb169

Browse files
committed
Fix the errorformat and improve to show only relevant messages
The comments in the previous errorformat broke it. The new error format correctly detects file and line numbers and provides a single entry in the quickfix list for each failure with the full failure message.
1 parent f0595ac commit 7beb169

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

compiler/exunit.vim

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ let s:cpo_save = &cpo
1616
set cpo-=C
1717

1818
CompilerSet makeprg=mix\ test
19-
20-
CompilerSet errorformat=
21-
\%A\ \ %n)\ %m, " 1) test name (Module)
22-
\%C,%C,%C,%C, " following 4 lines of failure info
23-
\%Z\ \ \ \ \ at\ %f:%l, " at foo_test:14
24-
\%-GFailures%.%#, " ignore three test output summary lines
25-
\%-GFinished%.%#,
26-
\%-G%n\ tests%.%#,
27-
\%-G\\s%# " ignore blank lines
19+
CompilerSet errorformat=%A\ \ %.)\ %m(%.%#),%C\ \ \ \ \ **%m,%C\ \ \ \ \ \ \ %m,%Z\ \ \ \ \ at\ %f:%l,%-G%.%#
2820

2921
let &cpo = s:cpo_save
3022
unlet s:cpo_save

0 commit comments

Comments
 (0)