Skip to content

Commit e0deb8e

Browse files
committed
Update the part of the manual about test selectors
1 parent 9228edd commit e0deb8e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/running_tests.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,25 @@ test namespace inference logic (e.g. you have some tests in the implementation
1313
namespace that were defined with `clojure.test/with-test`)
1414
- in such cases you should use <kbd>C-u C-c C-t C-n</kbd>, which will simply run
1515
whatever tests are present in the currently visited/active namespace.
16+
1617
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
1819
in the minibuffer. If you call this command with a prefix (<kbd>C-u C-c C-t C-s</kbd>)
1920
you can suppress the inference logic as for run tests for the namespace.
2021

2122
You can also run all loaded tests with <kbd>C-c C-t l</kbd> or <kbd>C-c C-t
2223
C-l</kbd> and all tests within a project with <kbd>C-c C-t p</kbd> or <kbd>C-c
2324
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
2627
<kbd>C-c C-t t</kbd> or <kbd>C-c C-t C-t</kbd>, you can execute only the
2728
test at point.
2829

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.
3031
People use them to define subsets of tests usually run together for different purposes. For
3132
example you can mark some of your tests with the `^:smoke` metadata marker others with
3233
`^: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.
3435

3536
All test commands are available in REPL buffers as well. There you can also use
3637
<kbd>,</kbd> to invoke some of the testing commands.
@@ -42,7 +43,7 @@ Keyboard shortcut | Description
4243
--------------------------------|-------------------------------
4344
<kbd>g</kbd> | Run test at point.
4445
<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.
4647
<kbd>l</kbd> | Run tests for all loaded namespaces.
4748
<kbd>p</kbd> | Run tests for all project namespaces. This loads the additional namespaces.
4849
<kbd>f</kbd> | Re-run test failures/errors.

0 commit comments

Comments
 (0)