Fork me on GitHub
#kaocha
<
2020-12-28
>
myguidingstar08:12:00

I add kaocha to a fork of cognitect's transit-clj here, but found no tests https://github.com/myguidingstar/transit-clj/blob/master/deps.edn

myguidingstar08:12:33

clojure -Mtest [] 0 tests, 0 assertions, 0 failures.

practicalli-johnny13:12:05

missing a colon ? clojure -M:test

myguidingstar15:12:53

just tried the colon, still no tests...

oxalorg (Mitesh)10:12:58

were you able to get this working? I can try and take a look if not

practicalli-johnny16:12:28

A brief look at the unit test code, it doesnt seem to follow the namespace and function naming conventions. I assume you will need to configure kaocha and tell it where your tests are and maybe how to run them.. https://cljdoc.org/d/lambdaisland/kaocha/1.0.732/doc/3-configuration

💯 3
myguidingstar16:12:55

ah, namespace conventions! I thought using deftest is enough. I'll have a look. Thanks

practicalli-johnny16:12:09

its common to add -test to the end of namespaces (and the names of the deftest functions). Or configure kaocha with some the different ns-pattern used. https://cljdoc.org/d/lambdaisland/kaocha/1.0.732/doc/3-configuration#example

💯 3