Hacker News new | ask | show | jobs
by mattlondon 1259 days ago
Integration tests that fire up a local server are not that unusual I find. I don't think there is anything unusual or "wrong" about that.

... But if you are counting how long integration tests take to run in single-digit minutes then either your app is really small/simple or your integration coverage is low! :)

I've worked on "state of the art" frontends at BigCos where integration/end-to-end tests are sharded across perhaps 10 test server instances ("local" in spirit, in reality technically not on the workstation), and even then it takes 20+ minutes to execute. They typically have to execute separately from the usual unit tests etc (which run automatically as part of the pre-push CD set up).

1 comments

It’s fairly small, built by a team of 3 over the course of a few years. Probably less than 100 endpoints. Good coverage for the core, not for the rest. (Eg, zero tests for the main way the app makes money, photo books. )