From 1ed034b998bd76df95e8d7e2ae32ae4a3dfb3098 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 13 Jul 2019 01:55:25 +0200 Subject: [PATCH] Always include the number of unexpected ert tests * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Always include the number of failed tests, because absence of the text is not reassuring (bug#36616). --- lisp/emacs-lisp/ert.el | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index ab24efe5a71..fe6eb19451b 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1524,16 +1524,10 @@ Ran \\([0-9]+\\) tests, \\([0-9]+\\) results as expected\ (message "\nSUMMARY OF TEST RESULTS") (message "-----------------------") (message "Files examined: %d" nlogs) - (message "Ran %d tests%s, %d results as expected%s%s" + (message "Ran %d tests%s, %d results as expected, %d unexpected, %d skipped" nrun (if (zerop nnotrun) "" (format ", %d failed to run" nnotrun)) - nexpected - (if (zerop nunexpected) - "" - (format ", %d unexpected" nunexpected)) - (if (zerop nskipped) - "" - (format ", %d skipped" nskipped))) + nexpected nunexpected nskipped) (when notests (message "%d files did not contain any tests:" (length notests)) (mapc (lambda (l) (message " %s" l)) notests)) -- 2.39.2