Fork me on GitHub
#kaocha
<
2021-03-22
>
onetom02:03:49

is there some built-in way to make kaocha.runner return a non-zero exit code if there were 0 tests ran?

onetom02:03:48

we have encountered it twice within 2 weeks in 2 different projects that the CI was misconfigured and reported false positive test results, because 0 tests ran.

lread11:03:23

@onetom, I would prefer a non zero exit in this scenario as well. But... it is also pretty easy to write https://github.com/lread/test-doc-blocks/blob/65bddd419c29f0e3ef8146aa11111df12bd7c1fd/tests.edn#L12 to achieve this.

👍 3
onetom11:03:41

thanks! I just heard, my colleague actually created a GitHub issue about this: https://github.com/lambdaisland/kaocha/issues/211 I will add your suggestion there.