go-focused-test
provides some convenience functions for running Go tests.
To install, download go-focused-test
and add the following to your init file:
(add-to-list 'load-path "/path/to/go-focused-test")
(require 'go-focused-test)
go-focused-test
provides two functions.
(run-go-tests)
(run-go-test-at-point)
(run-go-test-for-buffer)
In my emacs init file I bind the two functions like so:
(define-key go-mode-map "\C-c \C-f" 'run-go-test-at-point)
(define-key go-mode-map "\C-c \C-b" 'run-go-test-for-buffer)
(define-key go-mode-map "\C-c \C-t" 'run-go-tests)