Comparison of DC and MC/DC Code Coverages
Zalán Szűgyi, Zalán PORKOLÁB · Acta Electrotechnica et Informatica · 2013
In software development testing plays the most important role to discover bugs and to verify that the product meets its requirements.This paper focuses on programs written in C++ programming language and analyses two important testing methods, the Decision Coverage and the more strict Modified Condition / Decision Coverage.We examine how the program characteristics -lines of code, McCabe metric, the number of the arguments in the decisions, deepness of the nested block -affect the number of necessary test cases of these testing methods.Choosing test methods is always a compromise between the code correctness and the available resources.Less strict ones require fewer test cases and consume less resources, however, they may discover fewer errors.Our results may help to chose between Decision Coverage and Modified Condition / Decision coverage.