Teralizer: A Tool for Generalizing JUnit Tests into Property-Based jqwik Tests
Johann Glock, Clemens Bauer, Martin Pinzger
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.
Create a lesson
Related papers
Spec-Driven PBT: Deriving Semantic Invariants from Code Specifications for Agentic Property-based Testing
Shared title terminology · Aditya Shukla, Kartik Gupta, Ali Alavi et al.
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminology · Zhenyu Jiang, Yanlin Li, Rongjie Yan et al.
Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents
Shared title terminology · Sean Maxwell
Testing Settlement Flags after Late Evidence and Process Restart
Shared title terminology · Zengjian Liu, Tommy He, ELE Zhao et al.
Re-Testing LLM-Based C-to-Rust Translations Against Their Original C
Shared title terminology · Muhammad Hassnain
Reliability is a user-specific property of large language models
Shared title terminology · Xingyu Zhao