⟬  ACM SIGPLAN Distinguished Paper ⟭
Proceedings of the 12 th ACM SIGPLAN Conference on Software Languages Engineering, 2019
⟨ SLE 2019 ⟩
Grammar-based test case generation has focused almost exclusively on generating syntactically correct programs (i.e., positive tests) from a context-free reference grammar but a positive test suite cannot detect when the unit under test accepts words outside the language (i.e., false positives). Here, we investigate the converse problem and describe two mutation-based approaches for generating programs with guaranteed syntax errors (i.e., negative tests). Word mutation systematically modifies positive tests by deleting, inserting, substituting, and transposing tokens in such a way that at least one impossible token pair emerges. Rule mutation applies such operations to the symbols of the right-hand sides of productions in such a way that each derivation that uses the mutated rule yields a word outside the language.
@inproceedings{DBLP:conf/sle/RaselimoTF19,
author = {Moeketsi Raselimo and
Jan Taljaard and
Bernd Fischer},
editor = {Oscar Nierstrasz and
Jeff Gray and
Bruno C. d. S. Oliveira},
title = {Breaking parsers: mutation-based generation of programs with guaranteed
syntax errors},
booktitle = {Proceedings of the 12th {ACM} {SIGPLAN} International Conference on
Software Language Engineering, {SLE} 2019, Athens, Greece, October
20-22, 2019},
pages = {83--87},
publisher = {{ACM}},
year = {2019},
url = {https://doi.org/10.1145/3357766.3359542},
doi = {10.1145/3357766.3359542},
timestamp = {Sun, 19 Jan 2025 13:25:16 +0100},
biburl = {https://dblp.org/rec/conf/sle/RaselimoTF19.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}