forked from colonelpanic/dotfiles
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:
parent
8d062edd64
commit
57dfe8805e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user