2006
DOI: 10.1007/11759744_13
|View full text |Cite
|
Sign up to set email alerts
|

Automated Generation of Positive and Negative Tests for Parsers

Abstract: Abstract. In this paper we describe a specification-based approach to automated generation of both positive and negative test sets for parsers. We propose coverage criteria definitions for such test sets and algorithms for generation of the test sets with respect to proposed coverage criteria. We also present practical results of the technique application to testing syntax analyzers of several languages including C and Java.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
11
0

Year Published

2007
2007
2021
2021

Publication Types

Select...
4
3

Relationship

1
6

Authors

Journals

citations
Cited by 12 publications
(11 citation statements)
references
References 10 publications
0
11
0
Order By: Relevance
“…Test suites for complete grammars of some languages, such as COBOL [4], C, and Java [13], have been generated. There remains a question of whether the use of automated methods for generating semantics-oriented tests by the complete description of the static and dynamic semantics of a real programming language is justified from the practical standpoint, since the approaches discussed have been tested on subsets of real languages or on model programming languages.…”
Section: Discussionmentioning
confidence: 99%
See 2 more Smart Citations
“…Test suites for complete grammars of some languages, such as COBOL [4], C, and Java [13], have been generated. There remains a question of whether the use of automated methods for generating semantics-oriented tests by the complete description of the static and dynamic semantics of a real programming language is justified from the practical standpoint, since the approaches discussed have been tested on subsets of real languages or on model programming languages.…”
Section: Discussionmentioning
confidence: 99%
“…The approach suggested in [13] is based on constructing, for each terminal symbol t, a set F t of possible terminal symbols that can immediately follow t in some phrase of the language. The approach uses also the complement N t of the set F t in the set of all terminal symbols.…”
Section: Testing Of Syntax Analyzermentioning
confidence: 99%
See 1 more Smart Citation
“…Existing approaches use context free grammars to generate both valid and invalid input data structures, but the existing approaches do not model the complex relationships among data fields [Hoffman et al 2009;Zelenov and Zelenova 2006]. Context free grammars, for example, cannot be used to model the SES-DAQ relationship that indicates that the sequenceCount of a Packet must be greater by one than the sequenceCount of the previous Packet.…”
Section: Related Workmentioning
confidence: 99%
“…There are grammar-based testing scenarios that clearly benefit from inclusion of negative test cases [29]. For instance, a parser for which no grammar-based parser description is available can only be tested for completeness with regard to reference grammar with positive test cases whereas testing for correctness would require negative test cases.…”
Section: Matching Algorithmmentioning
confidence: 99%