Poll: How do you approach testing at work?
3 points by pkkm 10 hours ago
There's a lot of debate around testing. I'm interested to see how people approach it at work and how satisfied they are with their approach.
To preempt arguments about terminology, here's how I'll define the terms for the purposes of this thread. If the test doesn't touch any external service, it's a unit test, even if it executes thousands of lines of code. If it runs against a real Postgres instance or a real filesystem, it's an integration test. If the test is done entirely through the program's UI and public APIs, then it's an end-to-end test.
Unit tests for complex logical or algorithmic code with simple interfaces.
Hermetic end to end tests for the rest.