Skip to content

Commit ff85d29

Browse files
committed
Release clojure-mode 2.1.1 and clojure-test-mode 3.0.0.
Functionality for jumping between tests and implementation is obsolete as per #196.
1 parent 811a351 commit ff85d29

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ Once you have a repl session active, you can run the tests in the
6464
current buffer with <kbd>C-c C-,</kbd>. Failing tests and errors will be
6565
highlighted using overlays. To clear the overlays, use <kbd>C-c k</kbd>.
6666

67-
You can jump between implementation and test files with <kbd>C-c C-t</kbd> if
68-
your project is laid out in a way that clojure-test-mode expects. Your project
69-
root should have a `src/` directory containing files that correspond to their
70-
namespace. It should also have a `test/` directory containing files that
71-
correspond to their namespace, and the test namespaces should mirror the
72-
implementation namespaces with the addition of "-test" as the suffix to the last
73-
segment of the namespace.
74-
75-
So `my.project.frob` would be found in `src/my/project/frob.clj` and its tests
76-
would be in `test/my/project/frob_test.clj` in the `my.project.frob-test`
77-
namespace.
78-
79-
This behavior can also be overridden by setting `clojure-test-for-fn` and
80-
`clojure-test-implementation-for-fn` with functions of your choosing.
81-
`clojure-test-for-fn` takes an implementation namespace and returns the full
82-
path of the test file. `clojure-test-implementation-for-fn` takes a test
83-
namespace and returns the full path for the implementation file.
84-
8567
## Paredit
8668

8769
Using clojure-mode with

clojure-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; Lennart Staflin <lenst@lysator.liu.se>
77
;; Phil Hagelberg <technomancy@gmail.com>
88
;; URL: http://github.com/clojure-emacs/clojure-mode
9-
;; Version: 2.1.0
9+
;; Version: 2.1.1
1010
;; Keywords: languages, lisp
1111

1212
;; This file is not part of GNU Emacs.
@@ -1199,6 +1199,9 @@ word test in it and whether the file lives under the test/ directory."
11991199
(interactive)
12001200
(find-file (funcall clojure-test-for-fn (clojure-find-ns))))
12011201

1202+
(make-obsolete 'clojure-jump-to-test
1203+
"use projectile or toggle.el instead." "2.1.1")
1204+
12021205
(defun clojure-jump-between-tests-and-code ()
12031206
"Jump between implementation and related test file."
12041207
(interactive)

clojure-test-mode.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
;; Author: Phil Hagelberg <technomancy@gmail.com>
66
;; URL: http://emacswiki.org/cgi-bin/wiki/ClojureTestMode
7-
;; Version: 2.1.0
7+
;; Version: 3.0.0
88
;; Keywords: languages, lisp, test
99
;; Package-Requires: ((clojure-mode "1.7") (cider "0.4.0"))
1010

@@ -95,6 +95,11 @@
9595
;; 2.0.0 2012-12-29
9696
;; * Replace slime with nrepl.el
9797

98+
;; 3.0.0 2013-12-27
99+
;; * Replace nrepl.el with cider
100+
;; * Improve clojure-test-maybe-enable heuristic
101+
;; * Obsolete clojure-test-jump-to-implementation in favour of other libs
102+
98103
;;; TODO:
99104

100105
;; * Prefix arg to jump-to-impl should open in other window
@@ -487,6 +492,9 @@ Clojure src file for the given test namespace.")
487492
(find-file (funcall clojure-test-implementation-for-fn
488493
(clojure-find-ns))))
489494

495+
(make-obsolete 'clojure-test-jump-to-implementation
496+
"use projectile or toggle.el instead." "3.0.0")
497+
490498
(defvar clojure-test-mode-map
491499
(let ((map (make-sparse-keymap)))
492500
(define-key map (kbd "C-c C-,") 'clojure-test-run-tests)

0 commit comments

Comments
 (0)