aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-13 01:55:25 +0200
committerLars Ingebrigtsen2019-07-13 01:55:25 +0200
commit1ed034b998bd76df95e8d7e2ae32ae4a3dfb3098 (patch)
treeaea80a0616c21a0c0b276eb7b1b5d25849f0d164
parent99e8d6fc26a163001c3a7ccf6786e1c4ecc5788e (diff)
downloademacs-1ed034b998bd76df95e8d7e2ae32ae4a3dfb3098.tar.gz
emacs-1ed034b998bd76df95e8d7e2ae32ae4a3dfb3098.zip
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).
-rw-r--r--lisp/emacs-lisp/ert.el10
1 files 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\
1524 (message "\nSUMMARY OF TEST RESULTS") 1524 (message "\nSUMMARY OF TEST RESULTS")
1525 (message "-----------------------") 1525 (message "-----------------------")
1526 (message "Files examined: %d" nlogs) 1526 (message "Files examined: %d" nlogs)
1527 (message "Ran %d tests%s, %d results as expected%s%s" 1527 (message "Ran %d tests%s, %d results as expected, %d unexpected, %d skipped"
1528 nrun 1528 nrun
1529 (if (zerop nnotrun) "" (format ", %d failed to run" nnotrun)) 1529 (if (zerop nnotrun) "" (format ", %d failed to run" nnotrun))
1530 nexpected 1530 nexpected nunexpected nskipped)
1531 (if (zerop nunexpected)
1532 ""
1533 (format ", %d unexpected" nunexpected))
1534 (if (zerop nskipped)
1535 ""
1536 (format ", %d skipped" nskipped)))
1537 (when notests 1531 (when notests
1538 (message "%d files did not contain any tests:" (length notests)) 1532 (message "%d files did not contain any tests:" (length notests))
1539 (mapc (lambda (l) (message " %s" l)) notests)) 1533 (mapc (lambda (l) (message " %s" l)) notests))