Hacker News new | ask | show | jobs
by jonahx 4428 days ago
"These days I can run the entire test suite for our Person model — 52 cases, 111 assertions — in just under 4 seconds from start to finish. Plenty fast enough for a great feedback cycle!"

4 seconds is really slow, actually, and enough to take you out of flow. With a PORO Person object, decoupled from the system, that number will easily be sub 500 ms and possibly much less.

1 comments

I am really trying to understand these flow comments that are coming up. Waiting for 4 seconds for tests to run or even a few seconds more just seems like a silly thing to get caught up on. If we are talking minutes than I can see that but single digit seconds?
If you've developed a workflow around the kind of automatic test suites that run on every save to a source file and provide instant feedback, a several second wait would seem to be potentially a significant rhythm break.
Doubly so if that's synchronous (probably the case with vim).