基于属性的自然语言测试
Towards Property-Based Tests in Natural Language
摘要:
我们考虑一种新的方法来生成测试从自然语言。我们不依赖于机器学习或从结构化评论中提取模板,而是建议应用语言学的经典思想将自然语言句子翻译成可执行的测试。本文探讨了组合范畴语法(CCGs)在属性测试生成中的应用。我们的原型是能够生成测试的英文描述为每个例子在教科书中的一章基于属性的测试。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。