Assert use and defectiveness in industrial code

Counsell, Steve and Hall, Tracy and Shippey, Thomas and Bowes, David and Tahir, Amjed and MacDonell, Stephen (2017) Assert use and defectiveness in industrial code. In: Proceedings - 2017 IEEE 28th International Symposium on Software Reliability Engineering Workshops, ISSREW 2017. Institute of Electrical and Electronics Engineers Inc., FRA, pp. 20-23. ISBN 9781538623879

[img]
Preview
PDF (ISSRE_2017_Industry_Track_paper_6)
ISSRE_2017_Industry_Track_paper_6.pdf - Accepted Version
Available under License Creative Commons Attribution-NonCommercial.

Download (275kB)

Abstract

The use of asserts in code has received increasing attention in the software engineering community in the past few years, even though it has been a recognized programming construct for many decades. A previous empirical study by Casalnuovo showed that methods containing asserts had fewer defects than those that did not. In this paper, we analyze the test classes of two industrial telecom Java systems to lend support to, or refute that finding. We also analyze the physical position of asserts in methods to determine if there is a relationship between assert placement and method defect-proneness. Finally, we explore the role of test method size and the relationship it has with asserts. In terms of the previous study by Casalnuovo, we found only limited evidence to support the earlier results. We did however find that defective methods with one assert tended to be located at significantly lower levels of the class position-wise than non-defective methods. Finally, method size seemed to correlate strongly with asserts, but surprisingly less so when we excluded methods with just one assert. The work described highlights the need for more studies into this aspect of code, one which has strong links with code comprehension.

Item Type:
Contribution in Book/Report/Proceedings
Additional Information:
©2017 IEEE. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works must be obtained from the IEEE.
Uncontrolled Keywords:
/dk/atira/pure/subjectarea/asjc/2200/2213
Subjects:
ID Code:
127420
Deposited By:
Deposited On:
13 Sep 2018 08:46
Refereed?:
Yes
Published?:
Published
Last Modified:
24 Nov 2020 11:44