summaryrefslogtreecommitdiff
path: root/cider-test.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-01-18 09:35:00 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2018-01-18 10:09:21 +0200
commit28d5c0b80929d5e2cd0e5c1fd0f31e1f28f6477f (patch)
tree684ed33752671838f1ee69939e5741448dcac895 /cider-test.el
parentab2b6866676fec2142c6a2d416c14f4c2d916800 (diff)
Add a couple of comments to cider-test-run-test
Diffstat (limited to 'cider-test.el')
-rw-r--r--cider-test.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/cider-test.el b/cider-test.el
index 5d5ff88d..e0cf8e0d 100644
--- a/cider-test.el
+++ b/cider-test.el
@@ -688,9 +688,12 @@ is searched."
(let ((ns (get-text-property (point) 'ns))
(var (get-text-property (point) 'var)))
(if (and ns var)
+ ;; we're in a `cider-test-report-mode' buffer
+ ;; or on a highlighted failed/erred test definition
(progn
(cider-test-update-last-test ns var)
(cider-test-execute ns (list var)))
+ ;; we're in a `clojure-mode' buffer
(let ((ns (clojure-find-ns))
(def (clojure-find-def)))
(if (and ns (member (car def) cider-test-defining-forms))