Nothing Special   »   [go: up one dir, main page]

skip to main content
article

Analysing the effectiveness of rule-coverage as a reduction criterion for test suites of grammar-based software

Published: 01 August 2008 Publication History

Abstract

The term grammar-based software describes software whose input can be specified by a context-free grammar. This grammar may occur explicitly in the software, in the form of an input specification to a parser generator, or implicitly, in the form of a hand-written parser. Grammar-based software includes not only programming language compilers, but also tools for program analysis, reverse engineering, software metrics and documentation generation. Hence, ensuring their completeness and correctness is a vital prerequisite for their use. In this paper we propose a strategy for the construction of test suites for grammar based software, and illustrate this strategy using the ISO C + + grammar. We use the concept of grammar-rule coverage as a pivot for the reduction of an implementation-based test suite, and demonstrate a significant decrease in the size of this suite. The effectiveness of this reduced test suite is compared to the original test suite with respect to code coverage and more importantly, fault detection. This work greatly expands upon previous work in this area and utilises large scale mutation testing to compare the effectiveness of grammar-rule coverage to that of statement coverage as a reduction criterion for test suites of grammar-based software. This work finds that when grammar rule coverage is used as the sole criterion for reducing test suites of grammar based software, the fault detection capability of that reduced test suite is greatly diminished when compared to other coverage criteria such as statement coverage.

Cited By

View all
  • (2011)Comparison of context-free grammars based on parsing generated test dataProceedings of the 4th international conference on Software Language Engineering10.1007/978-3-642-28830-2_18(324-343)Online publication date: 3-Jul-2011

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Empirical Software Engineering
Empirical Software Engineering  Volume 13, Issue 4
August 2008
129 pages

Publisher

Kluwer Academic Publishers

United States

Publication History

Published: 01 August 2008

Author Tags

  1. Grammar-based software
  2. Mutation testing
  3. Rule coverage
  4. Software testing
  5. Test suite reduction

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 28 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2011)Comparison of context-free grammars based on parsing generated test dataProceedings of the 4th international conference on Software Language Engineering10.1007/978-3-642-28830-2_18(324-343)Online publication date: 3-Jul-2011

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media