From 5c63786cb9873ab2b61b5ad511c84df9cd56ce87 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 3 Jan 2022 21:40:38 +0100 Subject: [PATCH] New test shortdoc-all-groups-work * test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-all-groups-work): New test. See Bug#52969. --- test/lisp/emacs-lisp/shortdoc-tests.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/lisp/emacs-lisp/shortdoc-tests.el b/test/lisp/emacs-lisp/shortdoc-tests.el index 1c4125e3010..326d43eead4 100644 --- a/test/lisp/emacs-lisp/shortdoc-tests.el +++ b/test/lisp/emacs-lisp/shortdoc-tests.el @@ -44,6 +44,14 @@ (should (shortdoc-tests--tree-contains expr fun)))) (setq props (cddr props)))))))) +(ert-deftest shortdoc-all-groups-work () + "Test that all defined shortdoc groups display correctly." + (dolist (group (mapcar (lambda (x) (car x)) shortdoc--groups)) + (unwind-protect + (shortdoc-display-group group) + (when-let ((buf (get-buffer (format "*Shortdoc %s*" group)))) + (kill-buffer buf))))) + (provide 'shortdoc-tests) ;;; shortdoc-tests.el ends here -- 2.39.2