Teralizer: A Tool for Generalizing JUnit Tests into Property-Based jqwik Tests
Johann Glock, Clemens Bauer, Martin Pinzger
Key points
From the paper's conclusion- Tool: Teralizer automatically generalizes JUnit tests into property-based jqwik tests for regression detection.
Abstract
Background: Property-based testing validates properties across many generated inputs and can thereby detect regressions that conventional unit tests miss. However, writing property-based tests is challenging for practitioners, which limits their adoption. Tool: Teralizer automatically generalizes JUnit tests into property-based jqwik tests for regression detection. Through single-path symbolic analysis, it extracts from each test execution a path condition, which characterizes the inputs that follow the same execution path, and a symbolic output expression, which computes the expected output for these inputs. The generalized tests generate inputs that satisfy the path condition and use the symbolic output expression as the oracle. Results: In our evaluation, generalization increased the mutation scores of EvoSuite-generated test suites by 0.8 to 3.9 percentage points. On the EqBench benchmark, generalizing the test suites that EvoSuite generated with 1 s per class reached the mutation score of EvoSuite's 60 s test suites with 31.9% less total runtime. Availability: Teralizer is available as open source at https://github.com/glockyco/Teralizer.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Generating Property-Based Regression Tests from Source Code SemanticsarXiv · 2026
- PropCov: Effective Coverage Reporting for Property-Based TestingProceedings of the ACM on Software Engineering · 2026
- A Multi-Domain Study on the Effectiveness of LLMs at Writing Property-Based TestsarXiv · 2026
- TestPrism: Rethinking Test Evaluation Beyond a Single ReferencearXiv · 2026
- Underpinning Property-Based TestingarXiv · 2026
- Ephyra: A Property-Based Testing Framework for the LLM EraarXiv · 2026