Ephyra:面向大语言模型时代的基于属性的测试框架
Ephyra: A Property-Based Testing Framework for the LLM Era
AI总结:
本研究针对编码智能体编写测试占比增长但PBT库设计滞后的问题,提出基于R语言的Ephyra框架,将其应用于14个开源系统发现349个漏洞并报告300个,为LLM时代的测试提供了新工具。
摘要:
如今编码智能体编写的软件测试占比不断增长,但基于属性的测试(PBT)库仍基于历史考量设计。我们提出Ephyra,这是一个用R语言构建的PBT库,基于可定制性、可观测性和生成器合成三个核心概念。Ephyra允许用户从生成、变异和收缩中组合自定义测试循环,并合成这些组件以满足功能谓词。将Ephyra应用于14个开源系统,我们发现了349个漏洞,其中报告了300个,涉及数据库管理系统(SQLite、Turso、PostgreSQL、DuckDB、DataFusion)、经过验证的策略引擎(Cedar)、SQL等价证明器(QED)、此http URL中使用的URL解析器(ada-url)、用R语言重新实现的现有开源系统(coreutils、brush、gitoxide)以及编译器(binaryen、OCaml和OxCaml)。
英文摘要:
Coding agents now write a growing share of software tests; however, property-based testing (PBT) libraries are designed with historical considerations. We present Ephyra, a PBT library in Rust built on three concepts: customizability, observability and generator synthesis. Ephyra lets users compose their own testing loops from generation, mutation and shrinking, and synthesize these components to satisfy functional predicates. Applying Ephyra to 14 open source systems, we have found 349 bugs and reported 300 of them, in database management systems (SQLite, Turso, PostgreSQL, DuckDB, DataFusion), the verified policy engine (Cedar), the SQL equivalence prover (QED), the URL parser used in Node.js (ada-url), reimplementations of existing open source systems in Rust (coreutils, brush, gitoxide), and compilers (binaryen, OCaml, and OxCaml).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。