mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/emacs-lisp: add buttercup-run-project command
And replace non-interactive buttercup-run-discover.
This commit is contained in:
@ -114,6 +114,16 @@ if it's callable, `apropos' otherwise."
|
|||||||
(buttercup-run))
|
(buttercup-run))
|
||||||
(message "File executed successfully")))
|
(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
|
;;; Hooks
|
||||||
|
@ -133,7 +133,7 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
|||||||
:localleader
|
:localleader
|
||||||
:prefix "t"
|
:prefix "t"
|
||||||
"t" #'+emacs-lisp/buttercup-run-file
|
"t" #'+emacs-lisp/buttercup-run-file
|
||||||
"a" #'buttercup-run-discover
|
"a" #'+emacs-lisp/buttercup-run-project
|
||||||
"s" #'buttercup-run-at-point))
|
"s" #'buttercup-run-at-point))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user