Closed
Description
Expected behavior
cider-test-run-test
runs complex-metadata
test.
Actual behavior
cider-test-run-test
runs no-metadata
test.
Steps to reproduce the problem
Create a fresh project with a test namespace.
(ns core-test
(:require [clojure.test :refer [deftest is]]))
(deftest ^{:a 1} simple-metadata
(println "simple-metadata")
(is true))
(deftest ^{:a {}} complex-metadata
(println "complex-metadata")
(is true))
(deftest no-metadata
(println "no-metadata")
(is true))
Evaluate all forms and then
- if you run the test
no-metadata
-> all's good - if you run the test
simple-metadata
-> all's good - if you run the test
complex-metadata
-> it'll actually run the test no-metadata
The problem is likely with cider, because if I run the test with M-x nrepl-toggle-message-logging
I see the following nrepl message
(-->
id "31"
op "test"
session "5592cda3-5c97-44d9-86ad-b4d240708b61"
time-stamp "2024-11-19 22:25:08.377683423"
fail-fast "true"
load? "true"
ns #("core-test" 0 9 (face font-lock-type-face cider-block-dynamic-font-lock t cider-locals nil help-echo cider--help-echo fontified t))
tests ("no-metadata")
)
Meaning that cider actually picks up the wrong var to test.
Environment & Version information
CIDER version information
;; CIDER 1.16.0 (Kherson), nREPL 1.3.0
;; Clojure 1.11.1, Java 21.0.5
However, I've installed cider through melpa-unstable and it's installed in the directory cider-20241115.343
. I.e. I'm running https://github.com/clojure-emacs/cider/tree/c228dec27df6b2c68262f17158208fe699e1ce02.
Emacs version
29.4
I haven't ruled out interaction with other emacs packages. Although, my initial guess is that it's unlikely.
Operating system
ArchLinux