Fork me on GitHub
#kaocha
<
2020-09-18
>
plexus10:09:58

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.

plexus10:09:34

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 [(..)]

plexus10:09:55

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.

plexus10:09:18

kaocha 1.0.700. What a nice round number!

dharrigan10:09:25

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?

plexus10:09:39

yes, that is correct.

plexus10:09:02

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

plexus10:09:46

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)

dharrigan11:09:07

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

plexus12:09:30

Yup that's probably the place to put it

dharrigan12:09:14

thanks 🙂