I’m just learning my way through ruby and rails to learn it. One thing
I noticed is that testing 1 spec class with 1 test takes about 20
seconds. It’s not even using any rails functionality at all. I am just
concatenating some strings together and doing some math…
Contrast this with JUnit or ScalaTest… and I could have ran an
entire suit of thousands of tests in this amount of time.
One of the reasons I hated grails (I played with it about a year ago)
was that tests ran rediculously slow, so the test/feedback cycle was
horrendous… and I just refused to put up with that.
People knock Java/Spring/Hibernate, but you can have a fully tiered,
database-driven app that populates 100-150 rows of data per test that
runs 1000+ tests in under 60 seconds.
Given that knowledge… 20 seconds for 1 test that does nothing seems
very, very wrong. Any way I can speed this up?