calva
calva copied to clipboard
Run current test is running all tests that start with the name of the current test
(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.
I ran into this bug today, is there any progress on fixing it?
I think I have a fix for this. PR coming soon.