]> git.eshelyaron.com Git - emacs.git/commit
Improve failure reporting in test/lisp/electric-tests.el
authorAlan Mackenzie <acm@muc.de>
Wed, 24 Mar 2021 18:57:48 +0000 (18:57 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 24 Mar 2021 19:01:31 +0000 (19:01 +0000)
commitd20a4a50d377f1c48299dc18008ab1a106f4f58e
treecab9daa472631cf23acdd387f96025a23d1cee74
parenta5617bccf7d77b24c6f431e2c97496c440b06fe2
Improve failure reporting in test/lisp/electric-tests.el

In particular, on a failure, output the test's doc string to
electric-tests.log, along with all the other failure information.
Fixes bug #47320.

* electric-tests.el (electric-pair-test-for) New parameter doc-string.  On a
test failure, output the doc-string parameter with message.
(electric-pair-define-test-form): Set the new variable doc-string to the
generated doc string, and pass this as argument to both ert-deftest and
electric-pair-test-for.
test/lisp/electric-tests.el