3 ms·
>Now, I believe 100% test coverage is plain silly. Agreed with this for sure. It makes maintaining tests unsustainable and time consuming to write. Cover your
by drstewart 14y ago
>Now, I believe 100% test coverage is plain silly.
Agreed with this for sure. It makes maintaining tests unsustainable and time consuming to write. Cover your bases cases and make sure that important failure cases are covered. Don't try cover every possible iteration under the sun. I find that well written tests should almost read like executable documentation.
- IanMalcolm 14y agoAlso, I like to add a test for something every time someone reports a bug, to make sure there are no regressions (specially if it's a security problem). It also helps reproducing the bug and documenting it.