@schmidt2

Efficient Unit Test Case Minimization

, , , , and . Proceedings of the Twenty-second IEEE/ACM International Conference on Automated Software Engineering, page 417--420. New York, NY, USA, ACM, (2007)
DOI: 10.1145/1321631.1321698

Abstract

Randomized unit test cases can be very effective in detecting defects. In practice, however, failing test cases often comprise long sequences of method calls that are tiresome to reproduce and debug. We present a combination of static slicing and delta debugging that automatically minimizes the sequence of failure-inducing method calls. In a case study on the EiffelBase library, the strategy minimizes failing unit test cases on average by 96%. This approach improves on the state of the art by being far more efficient: in contrast to the approach of Lei and Andrews, who use delta debugging alone, our case study found slicing to be 50 times faster, while providing comparable results. The combination of slicing and delta debugging gives the best results and is 11 times faster.

Description

Efficient unit test case minimization

Links and resources

Tags

community