kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
2020-12-28T08:12:00.357700Z

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

2020-12-28T08:12:33.358100Z

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

2020-12-28T08:12:48.358300Z

any idea why?

oxalorg (Mitesh) 2020-12-30T10:29:58.366300Z

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

practicalli-john 2020-12-28T13:39:05.359300Z

missing a colon ? clojure -M:test

2020-12-28T15:35:53.359500Z

just tried the colon, still no tests...

practicalli-john 2020-12-28T16:20:28.363400Z

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

💯 1
2020-12-28T16:34:55.363700Z

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

practicalli-john 2020-12-28T16:51:09.363900Z

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

💯 1