From: Lars Ingebrigtsen Date: Fri, 12 Jul 2019 23:55:25 +0000 (+0200) Subject: Always include the number of unexpected ert tests X-Git-Tag: emacs-27.0.90~1979 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ed034b998bd76df95e8d7e2ae32ae4a3dfb3098;p=emacs.git 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). --- 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))