lang/emacs-lisp: add test localleader keys for buttercup

This commit is contained in:
Henrik Lissner 2019-07-25 12:56:34 +02:00
parent 7d9e844e35
commit a47351c58f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 28 additions and 1 deletions

View file

@ -101,6 +101,19 @@ if it's callable, `apropos' otherwise."
(bury-buffer buf)
buf)))))
;;;###autoload
(defun +emacs-lisp/buttercup-run-file ()
"Run all buttercup tests in the focused buffer."
(interactive)
(let ((load-path (append (list (doom-path (dir!) "..")
(or (doom-project-root)
default-directory))
load-path)))
(save-selected-window
(eval-buffer)
(buttercup-run))
(message "File executed successfully")))
;;
;;; Hooks