Add :disabled property to def-test-group!
This commit is contained in:
parent
0e6e0a2991
commit
c370e1cddd
1 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,8 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defmacro def-test-group! (name &rest body)
|
(defmacro def-test-group! (name &rest body)
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
|
(unless (plist-get body :disabled)
|
||||||
(dolist (form body)
|
(dolist (form body)
|
||||||
(when (eq (car form) 'ert-deftest)
|
(when (eq (car form) 'ert-deftest)
|
||||||
(setf (cadr form) (intern (format "test-%s-%s" name (symbol-name (cadr form)))))))
|
(setf (cadr form) (intern (format "test-%s-%s" name (symbol-name (cadr form)))))))
|
||||||
`(progn ,@body))
|
`(progn ,@body)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue