How to find the ๐Ÿข slowest N modules in test suite

Notes

If you want to improve your test suite speed, the first thing we want to do is find out whatโ€™s the slowest module we have, right?

Elixir 1.17 ships with a really cool mix test flag that helps us do just that! ๐ŸŽ‰

We can request ExUnit to print info about the N slowest modules:

mix test --slowest-modules 2

Voilร ! ExUnit will run and at the end, itโ€™ll print the slowest 2 modules.

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.