News for hackers. Stuff that matters.
Re:There are only four billion floats, so test them all (2014) by jskdvsksnb on Sunday October 11, 2020 @11:50AM (#24746591)
I have the inverse - I started at a place that has hundreds integration tests that require a database, k8s, the whole shebang. No mocking anywhere.

Tests take an hour to run, are extremely fragile and flakey. Getting your local dev machine set up to run even a subset of the tests is a half day ordeal, and it can change periodically.

If you have external dependencies that don't version their APIs well it may be inevitable that you need to run tests against them. But for developer productivity you should have a fast/non-flakey path to run local unit tests with no network dependencies. It's also great for working on a plane.

There are no comments on this comment yet.