Fork me on GitHub
#kaocha
<
2020-09-10
>
svt08:09:26

What are the benefits of kaocha over eftest??

plexus09:09:50

Depends what your needs are. If eftest is good enough for you then maybe that's fine. Kaocha is a much more general and extensible test runner. It can run many types of test (not just clojure.test), has an ecosystem of plugins, flexible filtering, CI integration through junit.xml etc.

plexus09:09:36

whereas eftest iirc has parallelized tests, that's something Kaocha hasn't gotten to yet

borkdude11:09:36

and koacha2 is going to work on CLJS (advanced), so suitable for .cljc projects, whereas eftest is clj only?

plexus11:09:36

yeah that's what I mean with "not just clojure.test", it does clojurescript, also cucumber. It kinda does midje but not very well...

borkdude11:09:18

ah, CLJS also has the clojure.test namespace, so I didn't get that.

plexus11:09:00

right, although it's actually an alias for cljs.test... kind of confusing, but yeah the default kaocha clojure test suite type is :kaocha.type/clojure.test to distinguish it from non-clojure.test CLJ test types

plexus11:09:01

although the trend there is for these to be clojure.test compatible (fudje, the "new" expectations), which makes our lives easier but can lead to further confusion

svt12:09:21

Thanks @plexus @borkdude it helped

practicalli-john14:09:19

@cksharma122 I started using kaocha as it also has plugins to run generative tests, i.e clojure.spec as well as unit tests. It also supports generating junit XML to use with CI dashboards and electronic wallboard.

plexus14:09:39

just put out a new release, not much to be seen. It adds a :debug plugin in case you really need to see what's going on under the hood, and it fixes a small issue in the filtering plugin so this works (kaocha.repl/run {:kaocha.filter/skip [:unit]}) (that is to say, this will completely skip loading the :unit suite, before it would skip running it, but it would still load it)

plexus14:09:04

also did some tweaks to the docs, seems we had a few plugins that weren't mentioned yet in the plugin docs (orchestra, preloads)

👍 3
plexus14:09:16

> has plugins to run generative tests that's on my todo list to split off into its own repo/artifact, and to have a better look at it. It's contributed code that I'm not very familiar with. Just a heads up.

practicalli-john15:09:30

the kaocha.plugin.alpha/spec-test-check plugin supports my simple use of generative tests. Any improvments are always welcome. I've also used it with the kaocha orb on CircleCI without issue so far. Happy to test any updates and report back.