Fork me on GitHub
#kaocha
<
2020-11-18
>
andrea.crotti15:11:03

is there anything available to re-run automatically failed tests?

andrea.crotti15:11:01

well actually it might be quite trivial to do if in the test report I know which one failed, and I use kaocha.repl to re-run them

dharrigan15:11:33

I normally have a seperate term open

dharrigan15:11:36

and I execute this

dharrigan15:11:40

clj -M:test -m kaocha.runner --watch

dharrigan15:11:48

that will reexecute all tests on any file save

andrea.crotti15:11:06

ah that's cool but I need retry for CI, since some tests depend on external infra

andrea.crotti15:11:10

that can fail sometimes

dharrigan15:11:33

oh okay. that sounds a bit flakey - can't you mock out the external bits?

andrea.crotti15:11:53

I guess it would not make sense for the type of tests to mock anything

dharrigan15:11:05

it's like having static variables in your codebase with a heisenberg test failure

dominicm21:11:01

Those external bits might be directly impacted by the code changing, like triggering a waf accidentally... Just speculating. You're probably right that something like pingdom is a better tool for that though.