ExUnitSpan - An ExUnit formatter to visualize test execution

An ExUnit formatter to visualize test execution and find bottlenecks in your test suite.

I created a small library called ex_unit_span to generate a trace file for ExUnit tests. The idea is to get a quick overview of which tests are slow. In many cases, slow async tests might not be a bottleneck even though they might take longer compared to other sync tests. Hopefully, this will help in prioritizing which tests should be optimized first.

The library is quite new. Please report any bugs or feel free to open issue to discuss anything.

26 Likes

Very cool and easy to use!

very nice!!

I have started interacting with the library. Its very easy to set up , however I’m not sure how to go about the information after uploading the json file in chrome://tracing . Its not clear what the visual data represents , like how do you know its a slow test ? Help with that please