Grammar‐based test generation with YouGen
- 28 October 2010
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 41 (4) , 427-447
Abstract
Grammars are traditionally used to recognize or parse sentences in a language, but they can also be used to generate sentences. In grammar‐based test generation (GBTG), context‐free grammars are used to generate sentences that are interpreted as test cases. A generator reads a grammar G and generates L(G), the language accepted by the grammar. Often L(G) is so large that it is not practical to execute all of the generated cases. Therefore, GBTG tools support ‘tags’: extra‐grammatical annotations which restrict the generation. Since its introduction in the early 1970s, GBTG has become well established: proven on industrial projects and widely published in academic venues. Despite the demonstrated effectiveness, the tool support is uneven; some tools target specific domains, e.g. compiler testing, while others are proprietary. The tools can be difficult to use and the precise meaning of the tags are sometimes unclear. As a result, while many testing practitioners and researchers are aware of GBTG, few have detailed knowledge or experience. We present YouGen, a new GBTG tool supporting many of the tags provided by previous tools. In addition, YouGen incorporates covering‐array tags, which support a generalized form of pairwise testing. These tags add considerable power to GBTG tools and have been available only in limited form in previous GBTG tools. We provide semantics for the YouGen tags using parse trees and a new construct, generation trees. We illustrate YouGen with both simple examples and a number of industrial case studies. Copyright © 2010 John Wiley & Sons, Ltd.Keywords
This publication has 24 references indexed in Scilit:
- Two case studies in grammar-based test generationJournal of Systems and Software, 2010
- Strength two covering arrays: Existence tables and projectionDiscrete Mathematics, 2008
- Roux-type constructions for covering arrays of strengths three and fourDesigns, Codes and Cryptography, 2006
- Covering arrays of higher strength from permutation vectorsJournal of Combinatorial Designs, 2005
- Combination testing strategies: a surveySoftware Testing, Verification and Reliability, 2005
- A test generation strategy for pairwise testingIEEE Transactions on Software Engineering, 2002
- The design and implementation of a grammar‐based data generatorSoftware: Practice and Experience, 1992
- Independent testing of compiler phases using a test case generatorSoftware: Practice and Experience, 1989
- A sentence generator for a compiler for PT, a pascal subsetSoftware: Practice and Experience, 1983
- Compiler testing using a sentence generatorSoftware: Practice and Experience, 1980