Add :skip support for def-test!

This commit is contained in:
Henrik Lissner 2017-12-29 04:17:19 -05:00
parent 7f2dd52b2e
commit 02c1a78330
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -75,6 +75,8 @@ If neither is available, run all tests in all enabled modules."
"Define a namespaced ERT test."
(declare (indent defun) (doc-string 2))
(unless (plist-get body :disabled)
(when (plist-get body :skip)
(push '(ert-skip nil) body))
`(ert-deftest
,(cl-loop with path = (file-relative-name (file-name-sans-extension load-file-name)
doom-emacs-dir)