]> git.eshelyaron.com Git - emacs.git/commitdiff
New test shortdoc-all-groups-work
authorStefan Kangas <stefan@marxist.se>
Mon, 3 Jan 2022 20:40:38 +0000 (21:40 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 3 Jan 2022 20:40:38 +0000 (21:40 +0100)
* test/lisp/emacs-lisp/shortdoc-tests.el
(shortdoc-all-groups-work): New test.  See Bug#52969.

test/lisp/emacs-lisp/shortdoc-tests.el

index 1c4125e30102e1e7fd1b78739a14a303c32f7ce8..326d43eead47ba3e9aaa2e96b7b3716c71875e72 100644 (file)
                 (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