|
|
|
|
|
by gofreddygo
386 days ago
|
|
Writing good tests is an art. Its hard. It takes a deep understanding of _how_ the system is implemented, what should be tested and what should be left alone. Coverage results don't mean much. Takes some experience to know how easy it is to introduce a major bug with 100% test coverage. Tests are supposed to tell you if a piece of code works as it should. But I have found no good way of judging how well a test suite actually works. You somehow need tests for tests and to version the test suite. A overemphasis on testing also makes the code very brittle and a pain to work with. Simple refactorings and text changes need dozens of tests to be fixed. library changes break things in weird ways. Unless I know the system being tested, I take no interest in tests. There's clever hacky ways to test systems that will never pass the "100% coverage" requirement and are a joy to work with. But they're the exception. |
|