3 ms·
FWIW, my big Rails test suite spends about 2 minutes on setup, then about 40 minutes running with a single runner. It parallelizes well, but of course the 2 mi
by quesera 4y ago
FWIW, my big Rails test suite spends about 2 minutes on setup, then about 40 minutes running with a single runner.
It parallelizes well, but of course the 2 mins is the lower bound.
- reillyse 4y agoYea, that sounds somewhat normal. I see builds getting bigger when you add in a bunch of yarn packages, building assets and webpacker etc. As projects get larger these tend to bloat up. You might be interested in looking at this demo of a Rails Rspec/Capybara test suite (https://brisktest.com/demos#rails https://brisktest.com/demos#rails) it's over 60 minutes locally on my macbook, we get it down to 90 seconds on brisk. It's got a lot of Selenium Chrome tests which is why it's so long (90 seconds is long for us), and I think fixing their flakiness would shave a lot off those seconds (lots of rspec retry going on) but it's a good example of a real-world test suite. Often fixing flaky tests is not the priority and getting your tests run in 90 seconds is huge.