Function: cider-test-run-ns-tests
cider-test-run-ns-tests is an interactive and byte-compiled function
defined in cider-test.el.
Signature
(cider-test-run-ns-tests SUPPRESS-INFERENCE &optional SILENT PROMPT-FOR-FILTERS)
Documentation
Run all tests for the current Clojure namespace context.
If SILENT is non-nil, suppress all messages other then test results. With a prefix arg SUPPRESS-INFERENCE it will try to run the tests in the current ns. If PROMPT-FOR-FILTERS is non-nil, prompt the user for test selectors to filter the tests with.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-test.el
(defun cider-test-run-ns-tests (suppress-inference &optional silent prompt-for-filters)
"Run all tests for the current Clojure namespace context.
If SILENT is non-nil, suppress all messages other then test results.
With a prefix arg SUPPRESS-INFERENCE it will try to run the tests in the
current ns. If PROMPT-FOR-FILTERS is non-nil, prompt the user for
test selectors to filter the tests with."
(interactive "P")
(if-let* ((ns (if suppress-inference
(cider-current-ns t)
(funcall cider-test-infer-test-ns (cider-current-ns t)))))
(cider-test-execute ns nil silent prompt-for-filters)
(if (eq major-mode 'cider-test-report-mode)
(when (y-or-n-p "Test report does not define a namespace. Rerun failed/erring tests?")
(cider-test-rerun-failed-tests))
(unless silent
(message "No namespace to test in current context")))))