arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.27002cs.SEcs.PL
收藏

Etna: 一个基于属性的测试评估平台

Etna: An evaluation platform for property-based testing

University of Maryland College Park(马里兰大学帕克分校);University of Pennsylvania(宾夕法尼亚大学);University at Buffalo(布法罗大学)

Alperen Keles, Jessica Shi, Nikhil Kamath, Tin Nam Liu, Ceren Mert, Harrison Goldstein, Benjamin C. Pierce, Leonidas Lampropoulos

AI总结:

提出Etna平台,集成多种PBT框架和工作负载,通过实验比较Rocq、Haskell等语言中的PBT策略,帮助用户理解最佳实践和权衡。

摘要:

基于属性的测试是函数式编程的主流,拥有丰富的文献、热情的用户社区和大量的工具——实际上,如此之多以至于新用户可能难以选择。此外,任何给定的框架都可能支持多种生成测试输入的策略;即使是经验丰富的用户也可能想知道在特定情况下哪种更好。遗憾的是,尽管PBT文献在创造性方面很丰富,但在帮助回答此类问题的严格比较方面却很欠缺。我们提出了ETNA,一个用于经验评估和比较PBT技术的平台。ETNA整合了文献中许多流行的PBT框架和测试工作负载,其可扩展架构使得添加新的框架变得容易,同时处理性能测量的技术性繁琐工作。为了说明其优势,我们使用ETNA在Rocq、Haskell、OCaml、Racket和Rust中进行了几个使用流行PBT方法的实验,使用户能够更清楚地理解最佳实践和权衡。

英文摘要:

Property-based testing is a mainstay of functional programming, boasting a rich literature, an enthusiastic user community, and an abundance of tools~ -- so many, indeed, that new users may have difficulty choosing. Moreover, any given framework may support a variety of strategies for generating test inputs; even experienced users may wonder which are better in any given situation. Sadly, the PBT literature, though long on creativity, is short on rigorous comparisons to help answer such questions. We present ETNA, a platform for empirical evaluation and comparison of PBT techniques. ETNA incorporates a number of popular PBT frameworks and testing workloads from the literature, and its extensible architecture makes adding new ones easy, while handling the technical drudgery of performance measurement. To illustrate its benefits, we use ETNA to carry out several experiments with popular PBT approaches in Rocq, Haskell, OCaml, Racket, and Rust, allowing users to more clearly understand best practices and tradeoffs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑