Assessing the Relationship between Software Assertions and Faults: An Empirical Investigation
Assessing the Relationship between Software Assertions and Faults: An Empirical Investigation
复制标题
评估软件断言和故障之间的关系:实证研究
DOI:
10.1109/issre.2006.14
复制
发表时间:
2006
期刊:
影响因子:
--
通讯作者:
T. Ball
中科院分区:
文献类型:
--
作者:
Gunnar Kudrjavets;Nachiappan Nagappan;T. Ball
The use of assertions in software development is thought to help produce quality software. Unfortunately, there is scant empirical evidence in commercial software systems for this argument to date. This paper presents an empirical case study of two commercial software components at Microsoft Corporation. The developers of these components systematically employed assertions, which allowed us to investigate the relationship between software assertions and code quality. We also compare the efficacy of assertions against that of popular bug finding techniques like source code static analysis tools. We observe from our case study that with an increase in the assertion density in a file there is a statistically significant decrease in fault density. Further, the usage of software assertions in these components found a large percentage of the faults in the bug database