论文标题
采用自然语言的基于物业的测试
Towards Property-Based Tests in Natural Language
论文作者
论文摘要
我们考虑了一种新方法来从自然语言中产生测试。我们建议不依靠机器学习或从结构化评论中提取模板提取,而是建议将自然语言句子从语言学中应用于可执行的测试。本文探讨了组合类别语法(CCG)在生成基于属性的测试中的应用。我们的原型能够在有关基于属性的测试的教科书章节中的每个示例中从英语描述中生成测试。
We consider a new approach to generate tests from natural language. Rather than relying on machine learning or templated extraction from structured comments, we propose to apply classic ideas from linguistics to translate natural-language sentences into executable tests. This paper explores the application of combinatory categorial grammars (CCGs) to generating property-based tests. Our prototype is able to generate tests from English descriptions for each example in a textbook chapter on property-based testing.