-
-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Description
Expected behavior
When I hit RET
on a failed test in *cider-test-report*
buffer I jump to corresponding failed test source.
Actual behavior
There are 2 possible problems. Assuming the following test report:
Results
com.example.app-test
1 non-passing tests:
Fail in foo-test
expected: (= {:one 1, :two 2, :three 3, :five 5, :six 6} {:four 4})
actual: (not (= {:one 1, :two 2, :three 3, :five 5, :six 6} {:four 4}))
- If the point is on
expected
word, I'm gettingSymbol ‘com.example.app-test/foo-test’ not resolved
error in the minibuffer. - If the point is inside of the expected value I'm getting a prompt in the minibuffer
No comment syntax is defined. Use:
. After setting;
, I'm gettingSymbol not resolved
error again.

Steps to reproduce the problem
Project files:
deps.edn
:
{:paths ["src"]
:deps {}
:aliases {:test {:extra-paths ["test"]}}}
src/com/example/app.clj
:
(ns com.example.app)
(defn foo
[bar]
(println bar))
test/com/example/app_test.clj
:
(ns com.example.app-test
(:require
[clojure.test :refer [deftest is]]))
(deftest foo-test
(is (= {:one 1
:two 2
:three 3
:five 5
:six 6}
{:four 4})))
- Jack-in to the project (enable
:test
alias additionally) - Run faulty test
- Try to navigate from test report buffer to the failed test source.
Environment & Version information
CIDER version information
;; CIDER 1.8.2 (Geneva), nREPL 1.0.0
;; Clojure 1.11.1, Java 17.0.8.1
Lein / Clojure CLI version
Clojure CLI 1.11.1
Emacs version
GNU Emacs 29.1.50 (build 1, aarch64-apple-darwin23.0.0, NS appkit-2487.00 Version 14.0 (Build 23A344)) of 2023-10-06
Operating system
MacOS 14 Sonoma
JDK distribution
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Homebrew (build 17.0.8.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.8.1+0, mixed mode, sharing)
Metadata
Metadata
Assignees
Labels
No labels