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

类型目标测试

Type Targeted Testing

Eric L. Seidel, Niki Vazou, Ranjit Jhala

摘要:

我们提出了一种新的技术,称为类型有针对性的测试,精确的细化类型转化为全面的测试套件。我们的方法背后的关键见解是,通过SMT求解器的镜头,细化类型也可以被视为一个高层次的,声明性的,测试生成技术,其中类型被转换为SMT查询,其模型可以被解码成具体的程序输入。我们的方法使系统和详尽的测试实现从高层次的声明性规范,此外,提供了一个渐进的路径从测试到全面验证。我们已经实现了我们的方法作为一个Haskell的测试工具,称为目标,并提出了一个评估,显示如何目标可以用来测试各种各样的属性,以及它如何与国家的最先进的测试方法进行比较。

英文摘要:

We present a new technique called type targeted testing, which translates precise refinement types into comprehensive test-suites. The key insight behind our approach is that through the lens of SMT solvers, refinement types can also be viewed as a high-level, declarative, test generation technique, wherein types are converted to SMT queries whose models can be decoded into concrete program inputs. Our approach enables the systematic and exhaustive testing of implementations from high-level declarative specifications, and furthermore, provides a gradual path from testing to full verification. We have implemented our approach as a Haskell testing tool called TARGET, and present an evaluation that shows how TARGET can be used to test a wide variety of properties and how it compares against state-of-the-art testing approaches.

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

↑