SBFT Tool Competition 2025 -- Java Test Case Generation Track

Fitsum Meshesha Kifetew, Yun Lin, Davide PrandiarXiv 2025 · DOI · arXiv

TL;DR

The 2025 SBFT Java Test Case Generation Competition evaluated four leading automated testing tools—EVOFUZZ, EVOSUITE, BBC, and RANDOOP—against a fresh benchmark of 55 open-source Java classes. While the BBC tool took home the top spot for overall performance and structural coverage, the study highlights a growing shift in the field: using Large Language Models (LLMs) to evaluate how readable and maintainable these machine-generated tests actually are for human developers.

What Problem Does This Paper Address?

Automated unit test generation has been a research staple for over a decade, but two major challenges persist. First, tools often "overfit" to older benchmarks, necessitating fresh, diverse codebases for fair evaluation. Second, traditional metrics like code coverage (did the tool run this line of code?) don't tell the whole story. A test suite might have 100% coverage but be so cryptic and poorly named that a human developer couldn't use it to debug a real failure.

The authors address these gaps by introducing a new benchmark of six open-source projects and implementing an experimental, LLM-based scoring system to measure the "human-readability" of generated tests.

Methods

The researchers benchmarked four tools:

  • EVOSUITE: The industry veteran, using the DynaMOSA evolutionary algorithm.
  • EVOFUZZ: A hybrid tool that combines evolutionary search with strategic fuzzing of primitive values.
  • BBC (Basic Block Coverage): An extension of EVOSUITE that uses a secondary objective to distinguish between test cases based on the specific "basic blocks" of code they hit.
  • RANDOOP: A baseline tool that uses feedback-directed random testing.

The Evaluation Framework: Tools were given a 120-second time budget per class. Performance was measured via:

  1. Structural Metrics: Line coverage, branch coverage, and mutation coverage (the ability of tests to catch intentionally introduced bugs).
  2. Readability Metrics: The authors used Google Gemini 1.5 Flash to score tests on a scale of 0–100 based on clarity, naming conventions, simplicity, and structure.

Datasets

The competition used a freshly selected set of Java classes from six diverse open-source projects:

  • Thumbnailator: Image resizing library.
  • Querydsl: SQL-like querying framework.
  • Java Faker: Fake data generator.
  • JavaCV: Computer vision wrappers.
  • Easy Rules: Rules engine.
  • Squash Java: A client library for error reporting.

Starting with 955 classes, the authors filtered for Cyclomatic Complexity (CCN) to ensure the tasks were challenging. After excluding classes that caused tool crashes or execution errors, the final benchmark consisted of 55 classes.

Key Insights and Ideas

  • The "Readability" Frontier: This is one of the first major competitions to systematically use LLMs to judge test quality. While structural coverage is the primary goal, the authors argue that if a test isn't readable, its value to a dev team drops significantly.
  • Quantity $\neq$ Quality: RANDOOP generated a staggering number of tests (averaging over 9,500 per class), yet it had the lowest coverage. In contrast, EVOSUITE generated only about 13 tests per class but achieved nearly 4x the branch coverage.
  • The "DynaMOSA" Family: EVOSUITE, EVOFUZZ, and BBC all share the same core DNA (the DynaMOSA algorithm). Their similar performance in line coverage suggests that the "low-hanging fruit" of code coverage is well-handled by modern evolutionary search, and the real competition is now in the "long tail" of complex branches and mutation killing.

Key Results

  • Overall Winner: BBC ranked 1st overall, followed by EVOFUZZ, EVOSUITE, and RANDOOP.
  • Coverage: Top tools (BBC, EVOFUZZ, EVOSUITE) achieved ~70% line coverage and 56–66% branch coverage. RANDOOP lagged behind at ~16% line and ~5% branch coverage.
  • Mutation Testing: This remains the hardest hurdle. RANDOOP failed to kill any mutants in 38% of cases, while the other tools still saw "zero-kill" results in about 20% of cases.
  • Readability Scores: EVOSUITE and EVOFUZZ tied for the most readable tests (median score of 70/100). Interestingly, while BBC won on structural metrics, its tests were significantly less readable (65/100) due to lower scores in "simplicity" and "structure."

Limitations and Future Work

  • Tool Stability: A significant number of classes (over 100) had to be excluded because they caused runtime errors across the tools. This suggests that "real-world" Java code still poses significant engineering challenges for automated generators.
  • Experimental Readability: Because LLM-based scoring is still experimental, the authors only allowed it to account for 10% of the final ranking score.
  • Time Budgets: Due to technical issues, the researchers could only test a single 120-second time budget. Future editions aim to explore how tools perform under tighter or more generous time constraints.

Summary updated

Abstract

This short report presents the 2025 edition of the Java Unit Testing Competition in which four test generation tools (EVOFUZZ, EVOSUITE, BBC, and RANDOOP) were benchmarked on a freshly selected set of 55 Java classes from six different open source projects. The benchmarking was based on structural metrics, such as code and mutation coverage of the classes under test, as well as on the readability of the generated test cases.
BibTeX
@misc{kifetew2025sbft,
  author = {Fitsum Meshesha Kifetew and Yun Lin and Davide Prandi},
  title = {{SBFT Tool Competition 2025 -- Java Test Case Generation Track}},
  year = {2025},
  eprint = {2504.09168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.09168},
  howpublished = {arXiv},
}
Figure