2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST) | 2019

Parallel Many-Objective Search for Unit Tests

 
 
 

Abstract


Meta-heuristic search algorithms such as genetic algorithms have been applied successfully to generate unit tests, but typically take long to produce reasonable results, achieve sub-optimal code coverage, and have large variance due to their stochastic nature. Parallel genetic algorithms have been shown to be an effective improvement over sequential algorithms in many domains, but have seen little exploration in the context of unit test generation to date. In this paper, we describe a parallelised version of the many-objective sorting algorithm (MOSA) for test generation. Through the use of island models, where individuals can migrate between independently evolving populations, this algorithm not only reduces the necessary search time, but produces overall better results. Experiments with an implementation of parallel MOSA on the EvoSuite test generation tool using a large corpus of complex open source Java classes confirm that the parallelised MOSA algorithm achieves on average 84% code coverage, compared to 79% achieved by a standard sequential version.

Volume None
Pages 37-47
DOI 10.1109/ICST.2019.00014
Language English
Journal 2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST)

Full Text