4 ms·
Hi! Blog post author here. I agree that tests are super valuable for many things, but it isn't enough here – at least not with the way my team writes tests. (
by henrikn 6y ago
Hi! Blog post author here.
I agree that tests are super valuable for many things, but it isn't enough here – at least not with the way my team writes tests.
(Our) tests wouldn't catch unused CSS classes or i18n keys.
(Our) tests wouldn't catch an unused method that is unit-tested. The unit test would happily pass because the unused method is still around and does what it should… in a vacuum.
Tests are great for catching live code that was incorrectly removed, but I'm not sure how they would help catch dead code that was incorrectly left in – but would love to hear more about it :)