English

Towards a better understanding of testing if conditionals

Software Engineering 2012-05-31 v1

Abstract

Fault based testing is a technique in which test cases are chosen to reveal certain classes of faults. At present, testing professionals use their personal experience to select testing methods for fault classes considered the most likely to be present. However, there is little empirical evidence available in the open literature to support these intuitions. By examining the source code changes when faults were fixed in seven open source software artifacts, we have classified bug fix patterns into fault classes, and recorded the relative frequencies of the identified fault classes. This paper reports our findings related to "if-conditional" fixes. We have classified the "if-conditional" fixes into fourteen fault classes and calculated their frequencies. We found the most common fault class related to changes within a single "atom". The next most common fault was the omission of an "atom". We analysed these results in the context of Boolean specification testing.

Keywords

Cite

@article{arxiv.1205.6594,
  title  = {Towards a better understanding of testing if conditionals},
  author = {Shimul Kumar Nath and Robert Merkel and Man Fai Lau and Tanay Kanti Paul},
  journal= {arXiv preprint arXiv:1205.6594},
  year   = {2012}
}

Comments

10 pages, 1 figure, 9 tables

R2 v1 2026-06-21T21:11:24.026Z