The effect of program and model structure on the effectiveness of MC/DC test adequacy coverage

Gregory Gay, Ajitha Rajan, Matt Staats, Michael Whalen, Mats P.E. Heimdahl

Research output: Contribution to journalArticlepeer-review

32 Scopus citations

Abstract

Test adequacy metrics defined over the structure of a program, such as Modified Condition and Decision Coverage (MC/DC), are used to assess testing efforts. However, MC/DC can be "cheated" by restructuring a program to make it easier to achieve the desired coverage. This is concerning, given the importance of MC/DC in assessing the adequacy of test suites for critical systems domains. In this work, we have explored the impact of implementation structure on the efficacy of test suites satisfying the MC/DC criterion using four real-world avionics systems. Our results demonstrate that test suites achieving MC/DC over implementations with structurally complex Boolean expressions are generally larger and more effective than test suites achieving MC/DC over functionally equivalent, but structurally simpler, implementations. Additionally, we found that test suites generated over simpler implementations achieve significantly lower MC/DC and fault-finding effectiveness when applied to complex implementations, whereas test suites generated over the complex implementation still achieve high MC/DC and attain high fault finding over the simpler implementation. By measuring MC/DC over simple implementations, we can significantly reduce the cost of testing, but in doing so, we also reduce the effectiveness of the testing process. Thus, developers have an economic incentive to "cheat" the MC/DC criterion, but this cheating leads to negative consequences. Accordingly, we recommend that organizations require MC/DC over a structurally complex implementation for testing purposes to avoid these consequences.

Original languageEnglish (US)
Article number25
JournalACM Transactions on Software Engineering and Methodology
Volume25
Issue number3
DOIs
StatePublished - Jul 2016
Externally publishedYes

Bibliographical note

Publisher Copyright:
© 2016 ACM.

Keywords

  • Coverage
  • Fault finding

Fingerprint

Dive into the research topics of 'The effect of program and model structure on the effectiveness of MC/DC test adequacy coverage'. Together they form a unique fingerprint.

Cite this