2015年7月22日星期三

Code Coverage is Nonsense

Suppose you have a code snippet with 10 lines, if all those 10 lines were tested, you got 100% coverage. But a couple of the lines could be executed in 10 alternative flows, and your unit test only 2 basic flows, still believe your coverage is 100%?