Skip to content

Commit

Permalink
Document cider.nrepl.middleware.test/*test-error-handler*
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv authored and bbatsov committed Aug 29, 2021
1 parent fd5232d commit aa6cd9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/modules/ROOT/pages/testing/running_tests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ passed or failed:
(setq cider-test-show-report-on-success t)
----

=== Running a callback on errors

Sometimes, for fine-grained integrations or debugging, you might want
to run an arbitrary callback whenever the tests fail due to an exception.

For this, you can safely redefine `cider.nrepl.middleware.test/*test-error-handler*`
using vanilla Clojure; please refer to its docstring for more details.

== Running Tests Automatically (Test-Driven Development)

CIDER provides a minor-mode that automatically runs all tests for a namespace
Expand Down

0 comments on commit aa6cd9f

Please sign in to comment.