Fork me on GitHub
#cider
<
2024-04-28
>
Publicimageltd09:04:22

I'm writing a babashka script, but the CIDER test runner doesn't work. I have a project with the recommended directory structure, I have a very minimal test file, and I actually can run the tests in the REPL (which I can launch from cider without problems). However, calling C-t C-t p and friends returns nothing. A short message is displayed Running tests in all project namespaces. but that's about it. No summary, no statisticis, and cider-test-show-report-on-success is set to true (but there are failing tests anyway). - Any ideas how I can find the problem???

borkdude09:04:30

The babashka nrepl server doesn’t support this yet

Publicimageltd09:04:46

Oh that's good to know thanks!

Publicimageltd09:04:03

But I could build an external test-runner, like it is recommended in the babashka book?

borkdude09:04:09

You can just run tests using clojure.test in the REPL

borkdude09:04:46

Also you can use the cognitect test runner

Publicimageltd09:04:26

I'll do the latter, as it is also recommended in your blog (https://blog.michielborkent.nl/babashka-test-runner.html)