Set go-test-additional-arguments-function

This adds additional arguments to the command produced by gotest so that
only the suite test is actually executed.
This commit is contained in:
Ivan Malison 2016-06-25 16:42:03 -07:00
parent 8d062edd64
commit 57dfe8805e

View File

@ -2170,10 +2170,16 @@ I use helm for almost all emacs completion
:preface :preface
(progn (progn
(imalison:prefix-alternatives (imalison:prefix-alternatives
imalison:gotest go-test-current-test go-test-current-file)) imalison:gotest go-test-current-test go-test-current-file)
(defun imalison:add-expected-test-name-for-suite (suite-name test-name)
(if (> (length suite-name) 0)
(concat " -run Test" suite-name)
"")))
:config :config
(progn (progn
(setq go-test-verbose t))) (setq go-test-verbose t
go-test-additional-arguments-function
'imalison:add-expected-test-name-for-suite)))
(use-package company-go (use-package company-go
:config (setq company-go-show-annotation t)) :config (setq company-go-show-annotation t))
(use-package go-projectile :demand t) (use-package go-projectile :demand t)