3 ms·
Refactoring is only error prone if you don't have integration tests. The advantage of extensive integration testing is that you can relentlessly refactor withou
by jasonhansel 6y ago
Refactoring is only error prone if you don't have integration tests. The advantage of extensive integration testing is that you can relentlessly refactor without fear of breaking things.
- jonahx 6y agoI'd much rather have them than not, but don't fool yourself into thinking you can refactor without any fear because you have integration tests. No matter how many you have, they'll only be testing a tiny fraction of your possible code paths.
- yxhuvud 6y agoTests are only sufficient if they tests cover the failure modes of the new abstraction. That is very often not the case. Tests still help a lot, but they don't reduce the risk to zero.