mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add :skip support for def-test!
This commit is contained in:
@ -75,6 +75,8 @@ If neither is available, run all tests in all enabled modules."
|
|||||||
"Define a namespaced ERT test."
|
"Define a namespaced ERT test."
|
||||||
(declare (indent defun) (doc-string 2))
|
(declare (indent defun) (doc-string 2))
|
||||||
(unless (plist-get body :disabled)
|
(unless (plist-get body :disabled)
|
||||||
|
(when (plist-get body :skip)
|
||||||
|
(push '(ert-skip nil) body))
|
||||||
`(ert-deftest
|
`(ert-deftest
|
||||||
,(cl-loop with path = (file-relative-name (file-name-sans-extension load-file-name)
|
,(cl-loop with path = (file-relative-name (file-name-sans-extension load-file-name)
|
||||||
doom-emacs-dir)
|
doom-emacs-dir)
|
||||||
|
Reference in New Issue
Block a user