calva icon indicating copy to clipboard operation
calva copied to clipboard

Run current test is running all tests that start with the name of the current test

Open bpringe opened this issue 8 months ago • 2 comments

(ns core-test
  (:require [clojure.test :refer [deftest]]))

(deftest test-1
  (prn "running test-1"))

(deftest test-10
  (prn "running test-10"))

(deftest test-11
  (prn "running test-11"))

(deftest test-12
  (prn "running test-12"))

With the above test code, if I put my cursor in the test-1 form and run the command to run the current test, this is the output:

; Running test: test-1…
; "running test-11"
; "running test-10"
; "running test-1"
; "running test-12"
; No tests found. 😱, ns: 1, vars: 4

I expect it to just run test-1.

bpringe avatar Apr 10 '25 22:04 bpringe

I ran into this bug today, is there any progress on fixing it?

maxrothman avatar Oct 22 '25 18:10 maxrothman

I think I have a fix for this. PR coming soon.

bpringe avatar Dec 30 '25 20:12 bpringe