Skip to content

Commit

Permalink
Merge pull request #1519 from bhcleek/fix-go-test-compile
Browse files Browse the repository at this point in the history
do not try to run tests for :GoTestCompile
  • Loading branch information
bhcleek committed Oct 18, 2017
2 parents 011dcad + b2ffdaa commit 0643e9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoload/go/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ function! go#test#Test(bang, compile, ...) abort

" don't run the test, only compile it. Useful to capture and fix errors.
if a:compile
" we're going to tell to run a test function that doesn't exist. This
" triggers a build of the test file itself but no tests will run.
call extend(args, ["-run", "499EE4A2-5C85-4D35-98FC-7377CD87F263"])
let testfile = tempname() . ".vim-go.test"
call extend(args, ["-c", "-o", testfile])
endif

if a:0
Expand Down

0 comments on commit 0643e9e

Please sign in to comment.