Skip to content

Commit ae3dc2b

Browse files
committed
Move test running config close to the functionality's description
1 parent 98fe8de commit ae3dc2b

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ specific CIDER release.**
6060
- [Configuration](#configuration)
6161
- [Basic configuration](#basic-configuration)
6262
- [Specifying indentation](#specifying-indentation)
63-
- [Running tests](#running-tests)
6463
- [Code reloading](#code-reloading)
6564
- [Minibuffer completion](#minibuffer-completion)
6665
- [Auto-completion](#auto-completion)
@@ -701,6 +700,20 @@ Keyboard shortcut | Description
701700
<kbd>d</kbd> | Display diff of actual vs expected.
702701
<kbd>e</kbd> | Display test error cause and stacktrace info.
703702

703+
Certain aspects of the test execution behavior are configurable:
704+
705+
* If your tests are not following the `some.ns-test` naming convention you can
706+
customize the variable `cider-test-infer-test-ns`. It should be bound to a
707+
function that takes the current ns and returns the matching test ns (which may
708+
be the same as the current ns).
709+
710+
* If you want to view the test report regardless of whether the tests have
711+
passed or failed:
712+
713+
```el
714+
(setq cider-test-show-report-on-success t)
715+
```
716+
704717
### Navigating stacktraces
705718

706719
CIDER comes with a powerful solution to the problem of verbose Clojure
@@ -1042,20 +1055,6 @@ Don't worry if this looks intimidating. For most macros the indent spec should
10421055
be either just a number, or one of the keywords `:defn` or `:form`. A full
10431056
description of the spec is provided in [Indent-Spec.md](Indent-Spec.md).
10441057

1045-
### Running tests
1046-
1047-
* If your tests are not following the `some.ns-test` naming convention you can
1048-
customize the variable `cider-test-infer-test-ns`. It should be bound to a
1049-
function that takes the current ns and returns the matching test ns (which may
1050-
be the same as the current ns).
1051-
1052-
* If you want to view the test report regardless of whether the tests have
1053-
passed or failed:
1054-
1055-
```el
1056-
(setq cider-test-show-report-on-success t)
1057-
```
1058-
10591058
### Code reloading
10601059

10611060
* `cider-refresh` wraps

0 commit comments

Comments
 (0)