Incorporating varying test costs and fault severities into test case prioritization

Sebastian Elbaum, Alexey Malishevsky, Gregg Rothermel

Proceedings of the 23rd International Conference on Software Engineering. ICSE 2001 · 2005 · 186 citations · 8 references

Concepts

TL;DR

Test case prioritization schedules regression tests to maximize performance goals, such as the rate of fault detection, which has been measured by the APFD metric in prior work that assumed uniform test costs and fault severities. This paper introduces a metric that incorporates varying test case and fault costs to assess the rate of fault detection. The metric extends the APFD framework by weighting faults and tests according to their respective costs. A case study demonstrates the metric’s application and shows how it can guide prioritization decisions.

Abstract

Test case prioritization techniques schedule test cases for regression testing in an order that increases their ability to meet some performance goal. One performance goal, rate of fault detection, measures how quickly faults are detected within the testing process. In previous work (S. Elbaum et al., 2000; G. Rothermel et al., 1999), we provided a metric, APFD, for measuring rate of fault detection, and techniques for prioritizing test cases to improve APFD, and reported the results of experiments using those techniques. This metric and these techniques, however, applied only in cases in which test costs and fault severity are uniform. We present a new metric for assessing the rate of fault detection of prioritized test cases that incorporates varying test case and fault costs. We present the results of a case study illustrating the application of the metric. This study raises several practical questions that might arise in applying test case prioritization; we discuss how practitioners could go about answering these questions.

References

8