Title :
Exploring Test Suite Diversification and Code Coverage in Multi-Objective Test Case Selection
Author :
Mondal, Debajyoti ; Hemmati, Hadi ; Durocher, Stephane
Author_Institution :
Dept. of Comput. Sci., Univ. of Manitoba, Winnipeg, MB, Canada
Abstract :
Test case selection is a classic testing technique to choose a subset of existing test cases for execution, due to the limited budget and tight deadlines. While ´code coverage´ is the state of practice among test case selection heuristics, recent literature has shown that `test case diversity´ is also a very promising approach. In this paper, we first compare these two heuristics for test case selection in several real-world case studies (Apache Ant, Derby, JBoss, NanoXML and Math). The results show that neither of the two techniques completely dominates the other, but they can potentially be complementary. Therefore, we next propose a novel approach that maximizes both code coverage and diversity among the selected test cases using NSGA-II multi- objective optimization, and the results show a significant improvement in fault detection rate. Specifically, sometimes this novel approach detects up to 16%(Ant), 10%(JBoss), and 14% (Math) more faults compared to either of coverage or diversity-based approaches, when the testing budget is less than 20% of the entire test suite execution cost.
Keywords :
genetic algorithms; program testing; software fault tolerance; Apache Ant; Derby; JBoss; Math; NSGA-II multiobjective optimization; NanoXML; code coverage; code diversity; fault detection rate; genetic algorithm; multiobjective test case selection; test case diversity; test case selection heuristics; test suite diversification; test suite execution cost; testing budget; testing technique; Diversity reception; Fault detection; Hamming distance; Linear programming; Optimization; Shape; Testing;
Conference_Titel :
Software Testing, Verification and Validation (ICST), 2015 IEEE 8th International Conference on
Conference_Location :
Graz
DOI :
10.1109/ICST.2015.7102588