How we made our Rails test suite about 75 percent faster

One of my recent tasks has been to take the current test suite for a large-ish Rails app and speed it up as much as possible. This is the story of how I managed to do so without compromising the integrity of the tests.Our current suiteAt the time of starting, our test suite contained 1347 assertions, and took approximately 12 minutes to run on a 2018 Macbook Pro.The setup is as follows:The testing framework is MiniTest, which comes set up by default in new Rails applications.The database is populated using thoughtbot’s factory_bot.Feature tests are done using minitest-rails-capybara.Browser driver used for Capybara is geckodriver.
How we made our Rails test suite about 75 percent faster #ruby #rubydeveloper #rubyonrails #test https://rubyonrails.ba/single/how-we-made-our-rails-test-suite-about-75-percent-faster

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles