Closed
Description
Expected behavior
cider-test-run-test
runs a test when the point is inside that test.
Actual behavior
cider-test-run-test
gives the error "No test at point."
Steps to reproduce the problem
In a Clojure file containing an ns
form and one of the forms in cider-test-defining-forms
(e.g.: deftest
), add a form before the ns
form, on the same line. Then navigate the point to one of the test forms and run cider-test-run-test
.
Here is an example of a namespace which will exhibit the problem:
1 (ns some-test
(:require [clojure.test :refer [deftest is]]))
(deftest unrecognized-test
(is (= 1 1)))
Environment & Version information
CIDER version information
;; CIDER 1.5.0-snapshot (package: 20220731.522), nREPL 0.9.0
;; Clojure 1.11.1, Java 17.0.3
Lein / Clojure CLI version
Clojure CLI version 1.11.1.1165
Emacs version
GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0) of 2022-09-13
Operating system
MacOS Monterey 12.5.1
JDK distribution
openjdk version "17.0.3" 2022-04-19 LTS
OpenJDK Runtime Environment Corretto-17.0.3.6.1 (build 17.0.3+6-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.3.6.1 (build 17.0.3+6-LTS, mixed mode, sharing)
Metadata
Metadata
Assignees
Labels
No labels