Unit Test Case Selection to Evaluate Changes in Critical Time

Fábio de Almeida Farzat, Márcio de Oliveira Barros · INFOR Information Systems and Operational Research · 2012

Defects blocking major business transactions may be found while a software system is in production. Due to the urgency of returning the system to proper operation, these defects are frequently resolved in the production environment itself, under such a restricted deadline that there is not enough time to run the complete set of unit test cases upon the patched version of the software. Declining to run the test case suite allows quicker deployment to production, but also allows for other defects to be introduced into the system. This paper evaluates whether a heuristic search approach can help a decision-maker selecting a subset of a unit test case suite to validate a set of changes made in the production environment. The selected test cases should maximize the coverage of changed features and must be executed under a strict time constraint. We designed and executed an experiment which compared different algorithms and found that heuristic search can provide better solutions to this test case selection problem (though at higher cost) than local or random search when the time restriction is a small fraction of the time required to run the full suite.

Read the paper · More papers on PaperTik