Logo image
Towards Property-Based Tests in Natural Language
Conference proceeding   Open access

Towards Property-Based Tests in Natural Language

Colin Stebbins Gordon
The Institute of Electrical and Electronics Engineers, Inc. (IEEE) Conference Proceedings
01 Jan 2022
url
http://arxiv.org/abs/2202.03616View

Abstract

Grammars Linguistics Machine learning Sentences Software engineering
Conference Title: 2022 IEEE/ACM 44th International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) Conference Start Date: 2022, May 22 Conference End Date: 2022, May 24 Conference Location: Pittsburgh, PA, USAWe 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.

Metrics

20 Record Views
1 citations in Scopus

Details

Logo image