kirancodes.me
To Proof Maintenance & Beyond!

Neural-Based Test Oracle Generation: A Large-Scale Evaluation and Lessons Learned

Soneya Binta Hossain, Antonio Filieri, Matthew B. Dwyer, Sebastian G. Elbaum, Willem Visser

Abstract

Defining test oracles is crucial and central to test development, but manual construction of oracles is expensive. While recent neural-based automated test oracle generation techniques have shown promise, their real-world effectiveness remains a compelling question requiring further exploration and understanding. This paper investigates the effectiveness of TOGA, a recently developed neural-based method for automatic test oracle generation. TOGA utilizes EvoSuite-generated test inputs and generates both exception and assertion oracles. In a Defects4j study, TOGA outperformed specification, search, and neural-based techniques, detecting 57 bugs, including 30 unique bugs not detected by other methods. To gain a deeper understanding of its applicability in real-world settings, we conducted a series of external, extended, and conceptual replication studies of TOGA.

BibTeX
@inproceedings{Hossain-al:FSE23,
  author    = {Soneya Binta Hossain and
               Antonio Filieri and
               Matthew B. Dwyer and
               Sebastian G. Elbaum and
               Willem Visser},
  title     = {{Neural-Based} Test Oracle Generation: A {Large-Scale} Evaluation and Lessons Learned},
  booktitle = {{ESEC/SIGSOFT} {FSE}},
  pages     = {120--132},
  publisher = {{ACM}},
  year      = {2023},
}

Related papers