Tests occupy a significant amount of developers’ time. We write them, run locally, and wait for CI builds to complete—the latter can last from a cup of coffee to a good day nap. And unfortunately, such “naps” are pretty common in the Ruby and Rails world. Luckily, the reasons for slow tests vary greatly between codebases: misconfigured environment, test-unfriendly dependencies, and, of course, factories and database interactions in general. I like to demonstrate the tools and techniques to help you identify bottlenecks in test suites to help you stay awake.
Video
Slides
Resources
The following resources were mentioned during the presentation or are useful additional information:
In the same orbit
- TestProf III: guided and automated Ruby test profiling
TestProf III: guided and automated Ruby test profiling
Explore more events
- Ruby Mixology 101: adding shots of PHP, Elixir, and more
Ruby Mixology 101: adding shots of PHP, Elixir, and more
RubyKaigiNaha, Okinawa, Japan - From slow to go: Rails test profiling hands-on
From slow to go: Rails test profiling hands-on
RailsConf 2024Detroit, Michigan, United States