From 57dfe8805e01321ef7cb4d1c8a85dd6869f9e6f7 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 25 Jun 2016 16:42:03 -0700 Subject: [PATCH] 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. --- dotfiles/emacs.d/README.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 53ffcacd..6e095f61 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2170,10 +2170,16 @@ I use helm for almost all emacs completion :preface (progn (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 (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 :config (setq company-go-show-annotation t)) (use-package go-projectile :demand t)