Skip to content

Commit 5e47e43

Browse files
committed
Make 'clojure-test-run-tests' load the test-namespace from file before
running the tests. Fixes running the tests from 'source'-file in /src
1 parent 4098601 commit 5e47e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clojure-test-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ Retuns the problem overlay if such a position is found, otherwise nil."
342342
(interactive)
343343
(save-some-buffers nil (lambda () (equal major-mode 'clojure-mode)))
344344
(message "Testing...")
345-
(clojure-test-clear)
346345
(save-window-excursion
347346
(if (not (clojure-in-tests-p))
348347
(clojure-jump-to-test))
348+
(clojure-test-clear)
349349
(clojure-test-eval (format "(binding [clojure.test/report clojure.test.mode/report]
350350
(clojure.test/run-tests '%s))"
351351
(clojure-find-ns))

0 commit comments

Comments
 (0)