Defect Prediction Guided Search-Based Software Testing

Anjana Perera, Aldeida Aleti, Marcel Böhme, Burak Turhan
9/26/2021
cs.SE

Official code: SBST-DPG/sbst-dpg (2 stars, Python, GPL-3.0, last commit 2021-10-27).

Abstract

Today, most automated test generators, such as search-based software testing (SBST) techniques focus on achieving high code coverage. However, high code coverage is not sufficient to maximise the number of bugs found, especially when given a limited testing budget.

Show full abstract

In this paper, we propose an automated test generation technique that is also guided by the estimated degree of defectiveness of the source code. Parts of the code that are likely to be more defective receive more testing budget than the less defective parts. To measure the degree of defectiveness, we leverage Schwa, a notable defect prediction technique. We implement our approach into EvoSuite, a state of the art SBST tool for Java. Our experiments on the Defects4J benchmark demonstrate the improved efficiency of defect prediction guided test generation and confirm our hypothesis that spending more time budget on likely defective parts increases the number of bugs found in the same time budget.

View on arXivView PDF

Code Implementations(1)

SBST-DPG/sbst-dpgOfficial100%
GPL-3.0

Defect prediction guided search-based software testing (SBST-DPG)

20Python, ShellAug 30, 20205 years agoGPL-3.0
automated-test-generationdefect-predictionsearch-based-software-testing

Similar Papers

Cite this paper

@article{perera2021defect,
  title  = {Defect Prediction Guided Search-Based Software Testing},
  author = {Anjana Perera and Aldeida Aleti and Marcel Böhme and Burak Turhan},
  year   = {2021},
  eprint = {2109.12645},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.12645}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.12645.svg)](https://codeofpaper.com/paper/2109.12645)

Discussion