Skip to content

Commit

Permalink
Document auto-test-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Mar 30, 2016
1 parent f2f3573 commit 5af56c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/extended-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@ passed or failed:
(setq cider-test-show-report-on-success t)
```

#### Running tests automatically (test-driven development)

CIDER provides a minor-mode that automatically runs all tests for a namespace
whenever you load a file (with <kbd>C-c C-k</kbd>). You can toggle it
manually with <kbd>M-x</kbd> `cider-auto-test-mode`, or you can use:

```el
(cider-auto-test-mode 1)
```

This is completely equivalent to manually typing <kbd>C-c C-t C-n</kbd> every
time you load a Clojure buffer. Also, as described above before, CIDER is smart
enough to figure out the namespace containing the tests.

#### Using cider-test with alternative test libraries

The `clojure.test` machinery is designed to be pluggable. Any test library
Expand Down

0 comments on commit 5af56c1

Please sign in to comment.