A Rails upgrade consultancy shares how they reduced a client's test suite runtime from 40 minutes to 4 by upgrading from Rails 2.3/Ruby 2.5 to Rails 8.1/Ruby 3.4, migrating from Test::Unit to Minitest, replacing factories with fixtures where appropriate, profiling and fixing slow individual tests, and enabling Rails' built-in

11m read timeFrom fastruby.io
Post cover image
Table of contents
The Different Causes of Slow TestsTests ParallelizationConclusion

Sort: