2 ms·
WEwLC is excellent. IIRC, its definition of "legacy code" is "untested code". End to end tests are great for providing confidence that the code does what it sa
by rgoulter 8y ago
WEwLC is excellent.
IIRC, its definition of "legacy code" is "untested code".
End to end tests are great for providing confidence that the code does what it says on the box.
Though end to end tests are slower than unit tests, and it can be tricky to track down why an end to end test failed.
A "Test Pyramid" seems a good idea to me.
(Unit tests can be quick, but don't cover much of the system.
E2E tests cover a lot of the system, but aren't quick.
"Test Pyramid" suggests it's better to have more unit tests relative to E2E tests).
"Only unit tests" or "only end to end tests" don't seem like practical things to aim for.