Skip to content

Commit

Permalink
Merge pull request #1327 from fatih/fix-echo-output-tesst
Browse files Browse the repository at this point in the history
test: fix outputing message when test finishes
  • Loading branch information
fatih authored Jun 8, 2017
2 parents fec6321 + 21cfbbc commit aefc0a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions autoload/go/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ function s:test_job(args) abort
let status.state = "failed"
endif

if get(g:, 'go_echo_command_info', 1)
if a:exitval == 0
if a:args.compile_test
call go#util#EchoSuccess("SUCCESS")
else
call go#util#EchoSuccess("PASS")
endif
else
call go#util#EchoError("FAILED")
endif
endif

let elapsed_time = reltimestr(reltime(started_at))
" strip whitespace
let elapsed_time = substitute(elapsed_time, '^\s*\(.\{-}\)\s*$', '\1', '')
Expand Down

0 comments on commit aefc0a2

Please sign in to comment.