arrow
Return

GenMorph: Automatically Generating Metamorphic Relations via Genetic Programming

delete2024-07-01
delete2
delete
OA
AI
J
Jon Ayerdi *
V
Valerio Terragni
G
Gunel Jahangirova
A
Aitor Arrieta
P
Paolo Tonella
DOI:10.1109/TSE.2024.3407840delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Metamorphic testing is a popular approach that aims to alleviate the oracle problem in software testing. At the core of this approach are Metamorphic Relations (MRs), specifying properties that hold among multiple test inputs and corresponding outputs. Deriving MRs is mostly a manual activity, since their automated generation is a challenging and largely unexplored problem. This paper presents GenMorph, a technique to automatically generate MRs for Java methods that involve inputs and outputs that are boolean, numerical, or ordered sequences. GenMorph uses an evolutionary algorithm to search for effective test oracles, i.e., oracles that trigger no false alarms and expose software faults in the method under test. The proposed search algorithm is guided by two fitness functions that measure the number of false alarms and the number of missed faults for the generated MRs. Our results show that GenMorph generates effective MRs for 18 out of 23 methods (mutation score > 20%). Furthermore, it can increase Randoop's fault detection capability in 7 out of 23 methods, and Evosuite's in 14 out of 23 methods. When compared with AutoMR, a state-of-the-art MR generator, GenMorph also outperformed its fault detection capability in 9 out of 10 methods.
Keywords:
Testing
Java
Generators
Space exploration
Manuals
Genetic programming
Filters
Metamorphic testing
oracle problem
metamorphic relations
genetic programming
mutation analysis

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

M
mondragon unibertsitatea
Scholars:
1.2K
Papers: 766
Citations: 4
U
University of Auckland
Scholars:
2.3W
Papers: 2.4W
Citations: 3.3W
U
university of london
Scholars:
21.5W
Papers: 19.7W
Citations: 305
researcher View more organizations