@@ -13,24 +13,25 @@ test namespace inference logic (e.g. you have some tests in the implementation
13
13
namespace that were defined with ` clojure.test/with-test ` )
14
14
- in such cases you should use <kbd >C-u C-c C-t C-n</kbd >, which will simply run
15
15
whatever tests are present in the currently visited/active namespace.
16
+
16
17
You can also press <kbd >C-c C-t C-s</kbd > to run a subset of the tests defined in
17
- the namespace prefiltered by a test selector . CIDER will ask you for this selector
18
+ the namespace filtered by test selectors . CIDER will ask you for those test selectors
18
19
in the minibuffer. If you call this command with a prefix (<kbd >C-u C-c C-t C-s</kbd >)
19
20
you can suppress the inference logic as for run tests for the namespace.
20
21
21
22
You can also run all loaded tests with <kbd >C-c C-t l</kbd > or <kbd >C-c C-t
22
23
C-l</kbd > and all tests within a project with <kbd >C-c C-t p</kbd > or <kbd >C-c
23
24
C-t C-p</kbd > (note that this will load ** all** namespaces in your
24
- project). If you call these two with a prefix CIDER will ask for a test selector
25
- and only run those tests in the project which are marked with that selector. Using
25
+ project). If you call these two with a prefix CIDER will ask for test selector filters
26
+ and only run those tests in the project which match the selector inclusions/exclusions . Using
26
27
<kbd >C-c C-t t</kbd > or <kbd >C-c C-t C-t</kbd >, you can execute only the
27
28
test at point.
28
29
29
- Test selector is originally a ` leiningen ` feature see ` lein help test ` for some explanation.
30
+ Test selectors are originally a ` leiningen ` feature - see ` lein help test ` for some explanation.
30
31
People use them to define subsets of tests usually run together for different purposes. For
31
32
example you can mark some of your tests with the ` ^:smoke ` metadata marker others with
32
33
` ^:integration ` . This enables you to run these tests separately in your build pipeline.
33
- This feature in CIDER helps you to run these subsets in your development environment.
34
+ This feature in CIDER helps you to run these test subsets in your development environment.
34
35
35
36
All test commands are available in REPL buffers as well. There you can also use
36
37
<kbd >,</kbd > to invoke some of the testing commands.
@@ -42,7 +43,7 @@ Keyboard shortcut | Description
42
43
--------------------------------|-------------------------------
43
44
<kbd >g</kbd > | Run test at point.
44
45
<kbd >n</kbd > | Run tests for current namespace.
45
- <kbd >s</kbd > | Run tests for current namespace prefiltered with a selector.
46
+ <kbd >s</kbd > | Run tests for current namespace with selector filter .
46
47
<kbd >l</kbd > | Run tests for all loaded namespaces.
47
48
<kbd >p</kbd > | Run tests for all project namespaces. This loads the additional namespaces.
48
49
<kbd >f</kbd > | Re-run test failures/errors.
0 commit comments