lang/emacs-lisp: add buttercup-run-project command

And replace non-interactive buttercup-run-discover.
This commit is contained in:
Henrik Lissner 2019-07-27 11:33:41 +02:00
parent 49afaa8bd1
commit 7c6e871035
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 1 deletions

View file

@ -114,6 +114,16 @@ if it's callable, `apropos' otherwise."
(buttercup-run))
(message "File executed successfully")))
;;;###autoload
(defun +emacs-lisp/buttercup-run-project ()
"Run all buttercup tests in the project."
(interactive)
(let* ((default-directory (doom-project-root))
(load-path (append (list (doom-path "test")
default-directory)
load-path)))
(buttercup-run-discover)))
;;
;;; Hooks

View file

@ -133,7 +133,7 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
:localleader
:prefix "t"
"t" #'+emacs-lisp/buttercup-run-file
"a" #'buttercup-run-discover
"a" #'+emacs-lisp/buttercup-run-project
"s" #'buttercup-run-at-point))