Subject: Re: bug#47320: Improve failure reporting in test/lisp/electrict-tests.el

From: Michael Albinus <[email-masked]>
Date: Tue, 23 Mar 2021 09:53:04 +0100

Alan Mackenzie <[email-masked]> writes:

> Hello, Emacs.

Hi Alan,

> My proposal is that on a test failure, this generated doc-string should
> be output along with the other failure stuff.  It doesn't actually add
> all that much bulk to the .log file.
>
> Here is patch which does this.  If there are no objections, I will
> commit it in a day or two.

There is the explainer functionality in ert, see

(info "(ert)Defining Explanation Functions")

I recommend to use it, for better readability of the test code. Examples
are in our test files.

Best regards, Michael.