This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-09
Channels
- # announcements (23)
- # asami (25)
- # babashka (38)
- # beginners (53)
- # calva (17)
- # clara (5)
- # clj-commons (1)
- # clj-kondo (18)
- # clojure (11)
- # clojure-europe (17)
- # clojure-france (1)
- # clojure-germany (5)
- # clojure-nl (2)
- # clojure-sg (4)
- # conjure (3)
- # deps-new (6)
- # fulcro (16)
- # off-topic (46)
- # pedestal (11)
- # react (2)
- # reagent (5)
- # reclojure (7)
- # rewrite-clj (1)
- # sci (18)
- # shadow-cljs (75)
- # sql (3)
- # xtdb (12)
Hi! Can anyone help me troubleshoot test running in calva? When I open a test file (.cljc) and "Run tests for current namespace", I see my tests passing. However, when I try "Run All Tests", I get "No tests found".
I'm not sure, how do I check it? I have a lein project with tests in "test" dir, and my project.clj has :test-paths ["test"]
If there is a :test
profile in the project, you might need to include that when you start the REPL.
I don't have a test profile, my profile looks like :uberjar {:aot :all}
. I tried selecting and unselecting it, in both cases no tests found when I run all tests
Try adding a test
profile and add :paths ["test"]
in there, and select it at jack-in (it sounds like you are using jack-in).
I added a profile :test {:paths ["test"]}
; I run jack-in, select Leiningen, then select my new test
profile, REPL starts, and when I call run all tests I get no tests found
It should probably be :source-paths
, sorry. Anyway, Calva does not have a way to inspect the classpath, but probably Clojure has. Or at least Java.
Tried with :source-paths
and also :test-paths
, still doesn't find the tests 😕
Did I maybe mess up with something else in the config? Here is my project.clj: https://github.com/gavr-games/kingdom-g/blob/master/engine/project.clj