|
22 | 22 | ;; current buffer with C-c C-,. Failing tests and errors will be |
23 | 23 | ;; highlighted using overlays. To clear the overlays, use C-c k. |
24 | 24 |
|
25 | | -;; You can jump between implementation and test files with C-c t if |
26 | | -;; your project is laid out in a way that clojure-test-mode |
27 | | -;; expects. Your project root should have a src/ directory containing |
28 | | -;; files that correspond to their namespace. It should also have a |
29 | | -;; test/ directory containing files that correspond to their |
30 | | -;; namespace, and the test namespaces should mirror the implementation |
31 | | -;; namespaces with the addition of "test" as the second-to-last |
32 | | -;; segment of the namespace. |
33 | | - |
34 | | -;; So my.project.frob would be found in src/my/project/frob.clj and |
35 | | -;; its tests would be in test/my/project/test/frob.clj in the |
36 | | -;; my.project.test.frob namespace. |
| 25 | +;; You can jump between implementation and test files with <kbd>C-c C-t</kbd> if |
| 26 | +;; your project is laid out in a way that clojure-test-mode expects. Your |
| 27 | +;; project root should have a `src/` directory containing files that correspond |
| 28 | +;; to their namespace. It should also have a `test/` directory containing files |
| 29 | +;; that correspond to their namespace, and the test namespaces should mirror the |
| 30 | +;; implementation namespaces with the addition of "-test" as the suffix to the |
| 31 | +;; last segment of the namespace. |
| 32 | + |
| 33 | +;; So `my.project.frob` would be found in `src/my/project/frob.clj` and its |
| 34 | +;; tests would be in `test/my/project/frob_test.clj` in the |
| 35 | +;; `my.project.frob-test` namespace. |
| 36 | + |
| 37 | +;; This behavior can also be overridden by setting `clojure-test-for-fn` and |
| 38 | +;; `clojure-test-implementation-for-fn` with functions of your choosing. |
| 39 | +;; `clojure-test-for-fn` takes an implementation namespace and returns the full |
| 40 | +;; path of the test file. `clojure-test-implementation-for-fn` takes a test |
| 41 | +;; namespace and returns the full path for the implementation file. |
37 | 42 |
|
38 | 43 | ;;; History: |
39 | 44 |
|
|
0 commit comments