UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

Diversifying Focused Testing for Unit Testing

Menendez, H; Jahangirova, G; Sarro, F; Tonella, P; Clark, D; (2021) Diversifying Focused Testing for Unit Testing. ACM Transactions on Software Engineering and Methodology , Article 44. 10.1145/3461694. Green open access

[thumbnail of fgt-main.pdf]
Preview
Text
fgt-main.pdf

Download (897kB) | Preview

Abstract

Software changes constantly, because developers add new features or modifications. This directly affects the effectiveness of the test suite associated with that software, especially when these new modifications are in a specific area that no test case covers. This article tackles the problem of generating a high-quality test suite to cover repeatedly a given point in a program, with the ultimate goal of exposing faults possibly affecting the given program point. Both search-based software testing and constraint solving offer ready, but low-quality, solutions to this: Ideally, a maximally diverse covering test set is required, whereas search and constraint solving tend to generate test sets with biased distributions. Our approach, Diversified Focused Testing (DFT), uses a search strategy inspired by GödelTest. We artificially inject parameters into the code branching conditions and use a bi-objective search algorithm to find diverse inputs by perturbing the injected parameters, while keeping the path conditions still satisfiable. Our results demonstrate that our technique, DFT, is able to cover a desired point in the code at least 90% of the time. Moreover, adding diversity improves the bug detection and the mutation killing abilities of the test suites. We show that DFT achieves better results than focused testing, symbolic execution, and random testing by achieving from 3% to 70% improvement in mutation score and up to 100% improvement in fault detection across 105 software subjects.

Type: Article
Title: Diversifying Focused Testing for Unit Testing
Open access status: An open access version is available from UCL Discovery
DOI: 10.1145/3461694
Publisher version: https://doi.org/10.1145/3447265
Language: English
Additional information: This version is the author accepted manuscript. For information on re-use, please refer to the publisher’s terms and conditions.
Keywords: Testing, focused testing, GödelTest, diversity, DFT
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science
URI: https://discovery.ucl.ac.uk/id/eprint/10123620
Downloads since deposit
145Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item