2005
DOI: 10.1007/s11086-005-0040-6
|View full text |Cite
|
Sign up to set email alerts
|

Generation of Positive and Negative Tests for Parsers

Abstract: A methodology for automatic positive and negative test set generation for testing parsers is described. Coverage criteria for such test sets based on the model approach to testing are proposed. Methods for the generation of test sets satisfying these criteria are discussed. Results of the application of the proposed methodology for testing parsers for various languages including C and Java are presented.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1

Citation Types

0
4
0

Year Published

2014
2014
2024
2024

Publication Types

Select...
3
2
1
1

Relationship

0
7

Authors

Journals

citations
Cited by 13 publications
(4 citation statements)
references
References 10 publications
0
4
0
Order By: Relevance
“…As a last example, and concrete application of all the above definitions, we introduce now G3, a context-free grammar representing a subset of a typical programming language 5 : we will see how advanced constraints look like, we will identify valid balanced weights and, finally, we will show a sample of generated sentences.…”
Section: Examplementioning
confidence: 99%
See 1 more Smart Citation
“…As a last example, and concrete application of all the above definitions, we introduce now G3, a context-free grammar representing a subset of a typical programming language 5 : we will see how advanced constraints look like, we will identify valid balanced weights and, finally, we will show a sample of generated sentences.…”
Section: Examplementioning
confidence: 99%
“…Where automatic test case generators differ from each other is the logic designed to select, between all rules expanding the same nonterminal, the rule to be used to substitute it: while such logic is typically designed to address a specific target coverage (examples are the already mentioned methodology introduced in [2] to address the production coverage, as well as the system introduced more recently in [5] to satisfy PLL coverage), within this paper all the presented approaches share the same logic, and this is simply and uniquely based on weights, introduced in Section 3.…”
Section: Introductionmentioning
confidence: 99%
“…The main idea for the generation of positive and negative tests for parsers is to modify (mutate) the original grammar in order to obtain a language grammar that is similar to the original one but not equivalent to it. These mutant grammars are fed at the input of a test generator, which then produces potentially negative tests [2].…”
Section: Techniques For Parser Testing a Grammar-based Testing Tmentioning
confidence: 99%
“…In the context of compiler testing, a test case consists of a test purpose or test case description, a test input consisting of a source program for which the behavior of the compiler is being verified and an expected output which may include a reference to an output file or error file [1]. Also, the testing must cover positive as well as negative test cases [2]. The correctness of parsing affects all other parts of the compiler: verification of semantic constraints, optimizing transformations, and code generation.…”
Section: Introductionmentioning
confidence: 99%