My app has 64 models and my test are so slow. 30 seconds at least.
I'm using Machinist. How can I speed up my tests? It has really killed
my motivation to test at all...
30 seconds? I'll take that any day!
I am involved in one project that has a test suite which takes 24
minutes today and is ever expanding. The only option to improve the
speed of that is to do some sort of distributed building. We're looking
at our options in that area.
Things we've done before:
- Cut down the number of superfluous tests
- Ensure your fixtures are transactional
- Switch to Ruby Enterprise Edition or JRuby for faster execution
- Looked into autotest
- Buy better hardware
- Tune the database