You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
It only matches (ns if that's how a given line begins (line-start). I could remove that, but then other edge cases would begin failing.
It's simpler to recommend users to avoid writing incorrect / dubious code. Formatters and linters can help with that - it can be a good a idea to run them before running tests.
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 incider-test-defining-forms
(e.g.:deftest
), add a form before thens
form, on the same line. Then navigate the point to one of the test forms and runcider-test-run-test
.Here is an example of a namespace which will exhibit the problem:
Environment & Version information
CIDER version information
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)
The text was updated successfully, but these errors were encountered: