Permalink
Browse files

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.
  • Loading branch information...
technomancy committed Dec 27, 2013
1 parent 811a351 commit ff85d29bab4dc186edda0193d578a9d5348a0dac
Showing with 13 additions and 20 deletions.
  1. +0 −18 README.md
  2. +4 −1 clojure-mode.el
  3. +9 −1 clojure-test-mode.el
View
@@ -64,24 +64,6 @@ Once you have a repl session active, you can run the tests in the
current buffer with <kbd>C-c C-,</kbd>. Failing tests and errors will be
highlighted using overlays. To clear the overlays, use <kbd>C-c k</kbd>.
-You can jump between implementation and test files with <kbd>C-c C-t</kbd> if
-your project is laid out in a way that clojure-test-mode expects. Your project
-root should have a `src/` directory containing files that correspond to their
-namespace. It should also have a `test/` directory containing files that
-correspond to their namespace, and the test namespaces should mirror the
-implementation namespaces with the addition of "-test" as the suffix to the last
-segment of the namespace.
-
-So `my.project.frob` would be found in `src/my/project/frob.clj` and its tests
-would be in `test/my/project/frob_test.clj` in the `my.project.frob-test`
-namespace.
-
-This behavior can also be overridden by setting `clojure-test-for-fn` and
-`clojure-test-implementation-for-fn` with functions of your choosing.
-`clojure-test-for-fn` takes an implementation namespace and returns the full
-path of the test file. `clojure-test-implementation-for-fn` takes a test
-namespace and returns the full path for the implementation file.
-
## Paredit
Using clojure-mode with
View
@@ -6,7 +6,7 @@
;; Lennart Staflin <lenst@lysator.liu.se>
;; Phil Hagelberg <technomancy@gmail.com>
;; URL: http://github.com/clojure-emacs/clojure-mode
-;; Version: 2.1.0
+;; Version: 2.1.1
;; Keywords: languages, lisp
;; 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."
(interactive)
(find-file (funcall clojure-test-for-fn (clojure-find-ns))))
+(make-obsolete 'clojure-jump-to-test
+ "use projectile or toggle.el instead." "2.1.1")
+
(defun clojure-jump-between-tests-and-code ()
"Jump between implementation and related test file."
(interactive)
View
@@ -4,7 +4,7 @@
;; Author: Phil Hagelberg <technomancy@gmail.com>
;; URL: http://emacswiki.org/cgi-bin/wiki/ClojureTestMode
-;; Version: 2.1.0
+;; Version: 3.0.0
;; Keywords: languages, lisp, test
;; Package-Requires: ((clojure-mode "1.7") (cider "0.4.0"))
@@ -95,6 +95,11 @@
;; 2.0.0 2012-12-29
;; * Replace slime with nrepl.el
+;; 3.0.0 2013-12-27
+;; * Replace nrepl.el with cider
+;; * Improve clojure-test-maybe-enable heuristic
+;; * Obsolete clojure-test-jump-to-implementation in favour of other libs
+
;;; TODO:
;; * Prefix arg to jump-to-impl should open in other window
@@ -487,6 +492,9 @@ Clojure src file for the given test namespace.")
(find-file (funcall clojure-test-implementation-for-fn
(clojure-find-ns))))
+(make-obsolete 'clojure-test-jump-to-implementation
+ "use projectile or toggle.el instead." "3.0.0")
+
(defvar clojure-test-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c C-,") 'clojure-test-run-tests)

0 comments on commit ff85d29

Please sign in to comment.