3 ms·
I'm a huge believer in testing -both unit and "monkey." A lot of my stuff has both. If it is heavily UI-centric, or involves device interfaces and/or communica
by ChrisMarshallNY 5y ago
I'm a huge believer in testing -both unit and "monkey."
A lot of my stuff has both. If it is heavily UI-centric, or involves device interfaces and/or communications, I tend to use test harnesses.
Unit testing is good. Combined with code coverage tools, it can be quite useful.
But having unit tests is not any kind of quality assurance. It means that the "low-hanging fruit" has been picked.
Test harnesses and "monkey testing" require a lot of discipline, but are often well worth it.
I write about the approach I take, here: https://littlegreenviper.com/miscellany/testing-harness-vs-unit/ https://littlegreenviper.com/miscellany/testing-harness-vs-u...
- rualca 5y agoUnit tests were never considered a silver bullet. The only thing they do is automatically run specific sanity checks on small subcomponents with everything else faked out. At best, they are a convenient way to ensure that if an invariant suddenly varies unexpectedly and in an unplanned way... A red flag is thrown into play.