From 8be9d4a1568c34aed753b085d5d33daef5dfa797 Mon Sep 17 00:00:00 2001 From: Julian Scheid Date: Tue, 15 Jun 2021 17:01:49 +0200 Subject: Allow ERT tests to output the failure reasons, too * lisp/emacs-lisp/ert.el (ert-reason-for-test-result): New function. (ert-run-tests-batch): Output failure or skip reason (bug#47071). --- doc/misc/ert.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/misc/ert.texi') diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi index a4e2cb506a3..fafdb8c4eb4 100644 --- a/doc/misc/ert.texi +++ b/doc/misc/ert.texi @@ -347,6 +347,10 @@ emacs -batch -l ert -l my-tests.el \ -eval '(ert-run-tests-batch-and-exit "to-match")' @end example +By default, ERT test failure summaries are quite brief in batch +mode--only the names of the failed tests are listed. If the +EMACS_TEST_VERBOSE environment variable is set, the failure summaries +will also include the data from the failing test. @node Test Selectors @section Test Selectors -- cgit v1.2.3