Abstract

Testing of software is done with an intention to find faults. If a fault is there then it needs to be detected, located and then resolved. Fault detection and localization are adjoining activities and thus it is difficult to combine them. Fault detection requires test information that helps in detecting the faults early whereas fault localization requires information which helps in locating the faults accurately. But test information is one common thing that is required for both the activities. This pre-condition helps to effectively combine both fault detection and localization. In this research work, a code and mutant coverage based multi-objective approach has been proposed to produce a minimized test suite having the ability of both detecting and locating faults. For optimization of test cases, NSGA-II algorithm has been used. Results on the projects of Defects4j repository depicts that the proposed approach is able to produce minimized test suites having the capability of detecting 95.16% of faults and locating all detected faults with fault localization score almost equivalent to that of the complete test suite. The average percentage of reduction in test suite size is 78% which is a good reduction percentage with the given fault detection and localization scores.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call