Ephyra: a property-based testing library where an AI agent improves input generators
Ephyra is a property-based testing[1] library from Datadog Labs, released under the MIT license and written in Rust. Property-based testing sets conditions that code must meet, such as the same number of elements before and after sorting, and generates many inputs automatically to check them. An AI agent improves the input generator itself: it reads which parts of the code the tests have run and changes the generator to reach paths that have not been run yet. Input formats and constraints kept in the generator let structured inputs such as SQL queries stay valid while varying. Failing inputs are reduced to smaller examples that trigger the same problem and kept as regression cases[2] for later tests. Datadog's research team reports finding 349 bugs in 14 open-source projects and reporting 300 of them to those projects, including a DuckDB case where LIMIT 1 returned 3 rows. Ephyra can test projects written in Rust, Python and C++.
Repository Ephyra github.com
Open source property-based testing library in Rust that generates many inputs to check code properties, with an AI agent improving the input generator.
Read the original github.comDiscussion on GeekNews
Discussion
One commenter notes that the risk of an agent weakening tests is lower here, because the agent changes the input generator while people set the checks. They suggest the same setup for apps: fix conditions such as a button staying on screen with rotation, large fonts and dark mode, and let the agent expand device combinations. They also like keeping reduced failing inputs as regression cases.
Sources
-
KRGeekNews KO
Ephyra - AI 에이전트를 위한 속성 기반 테스트 라이브러리


