arXiv:2512.14475v2 Announce Type: replace Abstract: Background: Property-based testing checks properties across generated inputs, finding edge cases that unit tests commonly miss. Writing properties can be challenging for practitioners, thus limiting adoption. Objective: We propose a semantics-based approach that automatically generalizes unit tests into property-based regression tests and analyze its effectiveness and applicability barriers. Design: Single-path symbolic analysis yields a path condition and a symbolic output expression, without constraint solving. Generalized tests sample inputs satisfying the path condition and replace expected values with the symbolic output. Teralizer implements the approach for Java, from JUnit tests to jqwik properties, for pure methods over primitive and boxed scalars and restricted string operations. Methods and Results: Teralizer generalizes tests in 9 of JARVIS's 12 benchmark projects, whereas JARVIS generalizes 2 of 12. On EqBench and Apache Commons, generalization raises mutation scores of EvoSuite and mature developer suites by 0.8-3.9 and 0.05-0.07 percentage points, respectively. Across 584 RepoReapers projects, barrier analysis attributes exclusions to assertion recognition, tested-method identification, symbolic type support, and concrete return values that the analysis cannot relate to the inputs. Conclusions: Our results suggest Teralizer applies more broadly than the state of the art. Future work should improve test analysis and symbolic analysis support. Artifacts at: https://doi.org/10.5281/zenodo.17950380
Finished reading? Continue to the original source above — or join the discussion below.