Function: ert--tests-running-mode-line-indicator
ert--tests-running-mode-line-indicator is a byte-compiled function
defined in ert.el.gz.
Signature
(ert--tests-running-mode-line-indicator)
Documentation
Return a string for the mode line that shows the test run progress.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--tests-running-mode-line-indicator ()
"Return a string for the mode line that shows the test run progress."
(let* ((stats ert--current-run-stats)
(tests-total (ert-stats-total stats))
(tests-completed (ert-stats-completed stats)))
(if (>= tests-completed tests-total)
(format " ERT(%s/%s,finished)" tests-completed tests-total)
(format " ERT(%s/%s):%s"
(1+ tests-completed)
tests-total
(if (null (ert--stats-current-test stats))
"?"
(format "%S"
(ert-test-name (ert--stats-current-test stats))))))))