3 ms·
It's true that obsessing over 100% code coverage is a bad thing. It's false that the purpose of unit tests is to lock down the project's source code. Unit test
by brlewis 8y ago
It's true that obsessing over 100% code coverage is a bad thing.
It's false that the purpose of unit tests is to lock down the project's source code. Unit tests have multiple purposes, but that isn't one of them. The main purpose of unit tests is to allow developers to quickly reach confidence that code works, be it a code change or new code.
There is no such thing as writing unit tests too early.