Consider using `test-prof` since it provides great tools to profile/understand/improve our test suite
I came accross https://github.com/palkan/test-prof yesterday and it seems that it contains a lot of useful tools: https://github.com/palkan/test-prof#table-of-contents
- We could enable the
Rspec/AggregateFailures
cop -
EventProf
looks quite useful to get data on events such asfactory.create
orsidekiq.inline
-
TagProf
could also be tried to get insights on stats per tag -
Factory Doctor
looks very interesting too -
Factory Prof
with the flamegraph viz looks very cool - Some tips and tricks could be used: https://github.com/palkan/test-prof/blob/master/README.md#tips-and-tricks-or-recipes