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
|
||||
(defmacro def-test-group! (name &rest body)
|
||||
(declare (indent defun))
|
||||
(dolist (form body)
|
||||
(when (eq (car form) 'ert-deftest)
|
||||
(setf (cadr form) (intern (format "test-%s-%s" name (symbol-name (cadr form)))))))
|
||||
`(progn ,@body))
|
||||
(unless (plist-get body :disabled)
|
||||
(dolist (form body)
|
||||
(when (eq (car form) 'ert-deftest)
|
||||
(setf (cadr form) (intern (format "test-%s-%s" name (symbol-name (cadr form)))))))
|
||||
`(progn ,@body)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue