Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the real world you don’t have pretty much unlimited resources. If I remember correctly those tests I was speaking about were already running in parallel on 2 or 3 machines otherwise the total time would have been 2 or 3 times more. Obviously we couldn’t use hundreds of machines to make them run in 10 minutes. In most of the places were I worked even getting a couple of new machines for production use would take months, I think if I requested even a couple of machines dedicated only for the integration testing I would have been laughed in the face. So if you can run a full suite of integration tests in minutes on hundreds/thousands of machines then good for you, but don’t expect that every company has the resources for doing it. And in those cases unit tests that run continuously are more useful than integration tests that run once a day.


> In most of the places were I worked even getting a couple of new machines for production use would take months

OK, well I guess this would be another caveat for my advice. If bringing up a production simulacra would take more resources than you have, then you might have to lean more on various types of doubles. This may be more often in environments that have insane prioritization of dev time vs. machine resources.

If I may ask, what was the bottleneck in your test suite? Did it saturate the cpu, ram, disk?


I don’t really remember. The software was a kind of ORM but it was built to interface the java code with an object database, so it doesn’t make much sense to call it ORM. Probably the main bottlenecks were cpu and disk if I have to guess. I arrived very late in the project, at the point where we were going to migrate everything to oracle and we had to add oracle support to that behemoth.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: