Fork me on GitHub
#cider
<
2022-09-24
>
ahungry04:09:36

Hi all - No assertions (or no tests) were run.Did you forget to use 'is' in your tests? - this is with the brand new repo from using clj-new (a deps.edn scaffolding) - anyone know what I may need to add to my Emacs config or project config to fix?

vemv05:09:51

You likely should activate the test alias so that the test/ dir is in the classpath

ahungry06:09:16

Thanks - i'm really new to deps.edn - what does that mean? (activate the test alias?) in regards to cider? I see I run my tests with clj -T:build test

ahungry06:09:55

(I found that a bit odd but sensible - running tests with a clj tool external to the repo deps themselves - but then it seems deps.edn isn't using my own defined alias to do tests)

ahungry06:09:08

(setq cider-clojure-cli-aliases ":env/dev:test")

ahungry06:09:11

found it, ty 🙂

cider 1
ahungry06:09:14

(it worked)

vemv06:09:10

yeah that's the right setting :thumbsup:

ahungry04:09:13

I can still hop into myapp/test/myname/myapp_test.clj and manually invoke a single test