Fork me on GitHub
#testing
<
2022-10-05
>
respatialized18:10:04

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

respatialized18:10:41

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

vemv18:10:40

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

vemv18:10:38

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 :)

thumbnail19:10:03

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
Noah Bogart20:10:24

kaocha does this, yeah

mauricio.szabo20:10:40

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

plexus06:10:38

Kaocha has a built in profiling plugin that does this

1