Property-based Testing of Attribute Grammars


연구 분야: Verification



학회: SLE '25: Proceedings of the 18th ACM SIGPLAN International Conference on Software Language Engineering


초록

Software testing is an integral part of modern software development. Testing frameworks are part of the toolset of any software language allowing programmers to test their programs in order to detect bugs. Unfortunately, there is no work on testing in attribute grammars. In this paper we combine the powerful property-based testing technique with the attribute grammar formalism. In such property-based attribute grammars, properties are defined on attribute instances. Properties are tested on large sets of randomly generated (abstract syntax) trees by evaluating their attributes. We present an implementation that relies on strategies to express property-based attribute grammars. Strategies are tree-based recursion patterns that are used to encode logic quantifiers defining the properties.


Author Profile
José Nuno Macedo

Depart. of Informatics & INESC TEC University of Minho Portugal

Portugal
Author Profile
Marcos Viera

Universidad de la República Montevideo Uruguay

Germany
Author Profile
João Saraiva

Depart. of Informatics & INESC TEC University of Minho Portugal

Portugal

📄 논문 정보

발행 연도 2025년
인용수 0
출판 국가 Germany, Portugal
사이트 ACM
좋아요 수 0

연관 논문 목록 (265건)