Generating Exception-Triggering Tests Through Adaptive Fitness Function Selection (ICST 2020)
Channel: Gregory Gay
Date: 2020-10-12

This is a recording of a talk given at ICST 2020.

Paper: https://greg4cr.github.io/pdf/20icst.pdf 

Abstract: Search-based test generation is guided by feedback from one or more fitness functions—scoring functions that judge solution optimality. Choosing informative fitness functions is crucial to meeting the goals of a tester. Unfortunately, many goals—such as forcing the class-under-test to throw exceptions—do not have a known fitness function formulation. We propose that meeting such goals requires treating fitness function identification as a secondary optimization step. An adaptive algorithm that can vary the selection of fitness functions could adjust its selection throughout the generation process to maximize goal attainment, based on the current population of test suites. To test this hypothesis, we have implemented two reinforcement learning algorithms in the EvoSuite framework, and used these algorithms to dynamically set the fitness functions used during generation.

We have evaluated our framework, EvoSuiteFIT, on a set of 386 real faults. EvoSuiteFIT discovers and retains more exception-triggering input and produces suites that detect a variety of faults missed by the other techniques. The ability to ,adjust fitness functions allows EvoSuiteFIT to make strategic choices that efficiently produce more effective test suites