How to make ANY code in ANY system unit-test-friendly
Posted by: Rico Marianis Performance Tidbits,
on 20 Nov 2014 |
View original | Bookmarked: 0 time(s)
There are lots of pieces of code that are embedded in places that make it very hard to test. Sometimes these bits are essential to the correct operation of your program and could have complex state machines, timeout conditions, error modes, and who knows what else. However, unfortunately, they are used in some subtle context such as a complex UI, an asynchronous callback, or other complex system. This makes it very hard to test them because you might have to induce the appropriate...