Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calva not detecting tests with aliased clojure.test namespace #1086

Closed
otwieracz opened this issue Mar 30, 2021 · 1 comment
Closed

Calva not detecting tests with aliased clojure.test namespace #1086

otwieracz opened this issue Mar 30, 2021 · 1 comment
Labels
bug Something isn't working test-runner

Comments

@otwieracz
Copy link

Calva is unable to detect tests if created with aliased t namespace instead of direct refer:

(ns ...
      (:require ...
            [clojure.test :refer [deftest is] :as t]))

(deftest foo
  (is (= 1 1)))

; Running test: foo…
; 1 tests finished, all passing 👍, ns: 1, vars: 1

(t/deftest bar
  (t/is (= 1 1)))

; No test found at cursor
@PEZ PEZ added bug Something isn't working test-runner labels Mar 31, 2021
@PEZ
Copy link
Collaborator

PEZ commented Mar 31, 2021

Thanks! I checked the code now. It's obvious why this doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test-runner
Projects
None yet
Development

No branches or pull requests

2 participants