Skip to main content
QUICK REVIEW

[Paper Review] JUGE: An Infrastructure for Benchmarking Java Unit Test Generators

Xavier Devroey, Alessio Gambi|arXiv (Cornell University)|Jun 14, 2021
Software Testing and Debugging TechniquesComputer Science8 citations
TL;DR

JUGE is a standardized, containerized infrastructure for benchmarking Java unit test generators, enabling reproducible, large-scale evaluations across diverse tools and techniques. It reduces benchmarking effort, supports replication, and enhances knowledge transfer between academia and industry by standardizing evaluation workflows, coverage, and mutation metrics across over ten tools in competitions since 2013.

ABSTRACT

Researchers and practitioners have designed and implemented various automated test case generators to support effective software testing. Such generators exist for various languages (e.g., Java, C#, or Python) and for various platforms (e.g., desktop, web, or mobile applications). Such generators exhibit varying effectiveness and efficiency, depending on the testing goals they aim to satisfy (e.g., unit-testing of libraries vs. system-testing of entire applications) and the underlying techniques they implement. In this context, practitioners need to be able to compare different generators to identify the most suited one for their requirements, while researchers seek to identify future research directions. This can be achieved through the systematic execution of large-scale evaluations of different generators. However, the execution of such empirical evaluations is not trivial and requires a substantial effort to collect benchmarks, setup the evaluation infrastructure, and collect and analyse the results. In this paper, we present our JUnit Generation benchmarking infrastructure (JUGE) supporting generators (e.g., search-based, random-based, symbolic execution, etc.) seeking to automate the production of unit tests for various purposes (e.g., validation, regression testing, fault localization, etc.). The primary goal is to reduce the overall effort, ease the comparison of several generators, and enhance the knowledge transfer between academia and industry by standardizing the evaluation and comparison process. Since 2013, eight editions of a unit testing tool competition, co-located with the Search-Based Software Testing Workshop, have taken place and used and updated JUGE. As a result, an increasing amount of tools (over ten) from both academia and industry have been evaluated on JUGE, matured over the years, and allowed the identification of future research directions.

Motivation & Objective

  • To reduce the high effort required to design, execute, and reproduce large-scale empirical evaluations of Java unit test generators.
  • To standardize benchmarking processes across diverse test generation tools and techniques (e.g., search-based, random, symbolic execution).
  • To improve knowledge transfer between academia and industry by enabling replication, comparison, and long-term archiving of evaluation results.
  • To support the development of evidence-based decisions in industrial adoption of automated test generation tools.
  • To serve as a foundation for future evaluations in other languages and application domains.

Proposed method

  • JUGE provides a Docker-based, containerized execution environment to isolate and standardize the execution of unit test generators.
  • It uses a plug-in adapter mechanism to interface with various generators, enabling integration of black-, white-, and gray-box tools.
  • The infrastructure standardizes input (Java source or binary), time budgeting, and output analysis using structural code coverage and mutation score metrics.
  • It supports parallelization for scalability and enables saving of benchmarks, generated tests, and intermediate results for replication and future comparison.
  • The system is designed to be extensible, configurable, and production-ready, with support for replication packages to ensure reproducibility.
  • It has been iteratively refined through annual tool competitions co-located with the SBST workshop since 2013.

Experimental results

Research questions

  • RQ1How can the benchmarking of Java unit test generators be standardized to reduce effort and improve reproducibility?
  • RQ2What are the key challenges in comparing diverse unit test generation tools across different techniques and configurations?
  • RQ3How can a shared infrastructure support long-term empirical evaluation and replication in software testing research?
  • RQ4To what extent can a common benchmarking platform enhance knowledge transfer between academia and industry?
  • RQ5What are the implications of standardized evaluation for future research in test generation and tool quality?

Key findings

  • JUGE has been successfully used to evaluate over ten unit test generation tools from both academia and industry in multiple editions of the SBST tool competition.
  • The infrastructure enabled consistent, reproducible, and scalable evaluation of generators using standardized metrics such as structural coverage and mutation score.
  • The use of containerization and a plug-in adapter mechanism significantly reduced configuration overhead and improved portability across different environments.
  • The availability of replication packages and archived results has enhanced transparency and trust in empirical findings, reducing issues like misconfiguration that previously skewed results (e.g., in EvoSuite studies).
  • JUGE has demonstrated its flexibility by supporting diverse techniques—including search-based, random, and symbolic execution—across multiple projects and benchmarks.
  • The infrastructure has enabled researchers to revisit prior studies with more accurate configurations, revealing overestimations of test smell prevalence in automatically generated tests.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.