-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Run All Tests command doesn't run tests in .cljc file with reader conditional in ns #1328
Comments
Do any of the other test commands work in this situation? I wonder if cider-nrepl (which is used for running tests), only checks |
Yes, I tried "Run tests for current namespace" and "Run current test", and they both work (I see output with test results in REPL). Here are some other things I noticed with "Run all tests":
|
Interesting, thanks for the added details. |
So, Calva is running the deprecated We can try using the not deprecated @marcomorain Since you've been working on test-related stuff, would you like to tackle this when you have time? If not, I can do it eventually. |
I'm taking a quick look now. |
Remove use of deprecated Cider commands, in favour of the supported test-var-query. This fixes an issue with cljc conditionals impacting the ability to run tests. Fixes: BetterThanTomorrow#1328
Remove use of deprecated Cider commands, in favour of the supported test-var-query. This fixes an issue with cljc conditionals impacting the ability to run tests. Fixes: BetterThanTomorrow#1328
👍 PR open which fixes this. |
Steps to reproduce:
lein new app test-app
core_test.clj
in tocore_test.cljc
core_test.cljc
change[clojure.test :refer :all]
to#?(:clj [clojure.test :refer :all])
The text was updated successfully, but these errors were encountered: