File: cider-test.el.html

This provides execution, reporting, and navigation support for Clojure tests, specifically using the clojure.test machinery. This functionality replaces the venerable clojure-test-mode (deprecated in June 2014), and relies on nREPL middleware for report running and session support.

Defined variables (23)

cider-auto-select-test-report-bufferDetermines if the test-report buffer should be auto-selected.
cider-auto-test-modeNon-nil if Cider-Auto-Test mode is enabled.
cider-auto-test-mode-hookHook run after entering or leaving ‘cider-auto-test-mode’.
cider-test--current-replContains the reference to the REPL where the tests were last invoked from.
cider-test--spinner-buffersList of buffers where test spinners are active.
cider-test-default-exclude-selectorsList of exclude selector strings to use when executing tests if none provided.
cider-test-default-include-selectorsList of include selector strings to use when executing tests if none provided.
cider-test-ediff-buffersThe expected/actual buffers used to display diff.
cider-test-fail-fastControls whether to stop a test run on failure/error.
cider-test-infer-test-nsFunction to infer the test namespace for NS.
cider-test-items-background-colorBackground color for test assertion items.
cider-test-last-resultsThe results of the last run test.
cider-test-last-summaryThe summary of the last run test.
cider-test-last-test-nsThe ns of the last test ran with ‘cider-test-run-test’.
cider-test-last-test-varThe var of the last test ran with ‘cider-test-run-test’.
cider-test-menuCIDER test submenu.
cider-test-report-bufferBuffer name in which to display test reports.
cider-test-report-mode-abbrev-tableAbbrev table for ‘cider-test-report-mode’.
cider-test-report-mode-hookHook run after entering ‘cider-test-report-mode’.
cider-test-report-mode-mapKeymap for ‘cider-test-report-mode’.
cider-test-report-mode-menuMenu for CIDER’s test result mode
cider-test-report-mode-syntax-tableSyntax table for ‘cider-test-report-mode’.
cider-test-show-report-on-successWhether to show the ‘*cider-test-report*‘ buffer on passing tests.

Defined functions (43)

cider--extract-test-var-at-point()
cider--test-adapt-to-theme(&rest _)
cider--test-silently()
cider--test-var-p(NS VAR)
cider-auto-test-mode(&optional ARG)
cider-find-var-file(NS VAR)
cider-test--extract-from-actual(ACTUAL N)
cider-test--prompt-for-selectors(MESSAGE)
cider-test--string-contains-newline(INPUT-STRING)
cider-test-clear-highlights()
cider-test-default-test-ns-fn(NS)
cider-test-echo-running(NS &optional TEST)
cider-test-echo-summary(SUMMARY RESULTS &optional ELAPSED-TIME)
cider-test-ediff()
cider-test-ediff-cleanup()
cider-test-execute(NS &optional TESTS SILENT PROMPT-FOR-FILTERS)
cider-test-highlight-problem(BUFFER TEST)
cider-test-highlight-problems(RESULTS)
cider-test-jump(&optional ARG)
cider-test-next-result()
cider-test-non-passing(TESTS)
cider-test-previous-result()
cider-test-render-assertion(BUFFER TEST)
cider-test-render-report(BUFFER SUMMARY RESULTS &optional ELAPSED-TIME NS-ELAPSED-TIME VAR-ELAPSED-TIME)
cider-test-render-summary(BUFFER SUMMARY &optional ELAPSED-TIME)
cider-test-report-mode()
cider-test-report-mode-menu(ARG1)
cider-test-rerun-failed-tests()
cider-test-rerun-test()
cider-test-run-loaded-tests(PROMPT-FOR-FILTERS)
cider-test-run-ns-tests(SUPPRESS-INFERENCE &optional SILENT PROMPT-FOR-FILTERS)
cider-test-run-ns-tests-with-filters(SUPPRESS-INFERENCE)
cider-test-run-project-tests(PROMPT-FOR-FILTERS)
cider-test-run-test()
cider-test-show-report()
cider-test-spinner-start(BUFFER)
cider-test-spinner-stop()
cider-test-stacktrace()
cider-test-stacktrace-for(NS VAR INDEX)
cider-test-toggle-fail-fast()
cider-test-type-face(TYPE)
cider-test-type-simple-face(TYPE)
cider-test-update-last-test(NS VAR)

Defined faces (3)

cider-test-error-faceFace for erring tests.
cider-test-failure-faceFace for failed tests.
cider-test-success-faceFace for passing tests.