kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2020-09-18T10:20:58.001200Z

putting out a new release with some smaller improvements, the main one is that Ctrl-C should be much more reliable now. If you are midway through a test run and you see there are some failing tests, you can interrupt it to see the details of the failures. This was always supposed to work but half of the time it didn't.

plexus 2020-09-18T10:22:34.002700Z

this also contains an improvement where we skip over group tests (e.g corresponding with a namespace) if there is nothing inside the group to test. This is mainly done because the spec-test-check plugin generates a test for each ns, even if it doesn't have any fdef's in it. So instead of [()()()()()(..)] you now will just see [(..)]

plexus 2020-09-18T10:23:55.004Z

also if you are using the spec-test-check plugin you can run only your generated tests with bin/kaocha generative-fdef-checks, since it's really just a test suite. This should have worked before but because of the order things happen the test suite got added after the filtering had already happened, so it would always run, even when doing e.g. bin/kaocha unit.

plexus 2020-09-18T10:24:18.004300Z

kaocha 1.0.700. What a nice round number!

dharrigan 2020-09-18T10:49:25.005200Z

Would I be right in thinking that the kaocha.hooks/pre-run will be run only once before all the tests are run and similiarly, the kaocha.hooks/post-run after all the tests are run?

plexus 2020-09-18T10:52:39.005600Z

yes, that is correct.

plexus 2020-09-18T10:53:02.005900Z

pre-test / post-test run before/after individual tests

plexus 2020-09-18T10:53:46.006800Z

similarly pre-load / post-load run once, pre-load-test / post-load-test run once for each tests (unfortunately we're stuck with the inconsistent naming)

dharrigan 2020-09-18T11:14:07.007200Z

thanks...looking to spin up a little db before all tests are run then tear it down afterwards.

plexus 2020-09-18T12:06:30.007600Z

Yup that's probably the place to put it

dharrigan 2020-09-18T12:10:14.007800Z

thanks 🙂