testing

respatialized 2022-10-05T18:28:04.333419Z

Is there a test runner or library that includes the duration of each test and/or subform as part of the results summary?

respatialized 2022-10-05T18:29:41.156479Z

Not a substitute for proper benchmarking, I know, but could still be directionally useful for answering the β€œwhich test is slowing down my feedback loop” question quickly

vemv 2022-10-05T18:34:40.393949Z

@jeroen.dejong we had something like this, didn't we? I don't remember if it was proprietary code

vemv 2022-10-05T18:40:38.908389Z

probably it was a very simple :each fixture which I would painstakingly remember to add to every ns. Not fancy, but it will work in every test runner - I like clojure.test as an interoperable standard :)

2022-10-05T19:11:03.992049Z

We have switched most internal projects to kaocha with junit reporting. Which does include this info i think. Our CI can then determine slowest tests and suites over time 😁

πŸ‘€ 1
πŸ€” 1
2022-10-05T20:05:24.768049Z

kaocha does this, yeah

mauricio.szabo 2022-10-05T20:42:40.229479Z

It may bit be that hard to make one, I can try to hack something later if you want :)

plexus 2022-10-06T06:44:38.314599Z

Kaocha has a built in profiling plugin that does this

πŸ™πŸ» 1