Function: cider-test--echo-progress

cider-test--echo-progress is a byte-compiled function defined in cider-test.el.

Signature

(cider-test--echo-progress NS SUMMARY)

Documentation

Echo the running SUMMARY of a test run that has reached NS.

Updates come at most every tenth of a second, as a run can go through many test vars in that time.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-test.el
(defun cider-test--echo-progress (ns summary)
  "Echo the running SUMMARY of a test run that has reached NS.
Updates come at most every tenth of a second, as a run can go through
many test vars in that time."
  (let ((now (float-time)))
    (when (> (- now cider-test--last-progress-echo) 0.1)
      (setq cider-test--last-progress-echo now)
      (nrepl-dbind-response summary (test fail error)
        ;; one of these per test var would flood *Messages*
        (let ((message-log-max nil))
          (message "Running tests in %s... %d assertions, %d failures, %d errors"
                   (cider-propertize ns 'ns) test fail error))))))