Skip to content

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

Open
@bpringe

Description

@bpringe
(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions