سند علمی

A Semantic Framework for Test Coverage (Extended Version)

چکیده

Since testing is inherently incomplete, test selection is of vital importance. Coverage measures evaluate the quality of a test suite and help the tester select test cases with maximal impact at minimum cost. Existing coverage criteria for test suites are usually defined in terms of syntactic characteristics of the implementation under test or its specification. Typical black-box coverage metrics are state and transition coverage of the specification. White-box testing often considers statement, condition and path coverage. A disadvantage of this syntactic approach is that different coverage figures are assigned to systems that are behaviorally equivalent, but syntactically different. Moreover, those coverage metrics do not take into account that certain failures are more severe than others, and that more testing effort should be devoted to uncover the most important bugs, while less critical system parts can be tested less thoroughly. This paper introduces a semantic approach to test coverage. Our starting point is a weighted fault model, which assigns a weight to each potential error in an implementation. We define a framework to express coverage measures that express how well a test suite covers such a specification, taking into account the error weight. Since our notions are semantic, they are insensitive to replacing a specification by one with equivalent behaviour. We present several algorithms that, given a certain minimality criterion, compute a minimal test suite with maximal coverage. These algorithms work on a syntactic representation of weighted fault models as fault automata. They are based on existing and novel optimization problems. Finally, we illustrate our approach by analyzing and comparing a number of test suites for a chat protocol.

اسناد مشابه

  • State Coverage: Software validation metrics beyond Code Coverage - Extended Version

    سند علمی۲۰۱۱Dries Vanoverberghe, Jonathan de Halleux, Nikolai Tillmann, Frank Piessens

    Currently, testing is still the most important approach to reduce the amount of software defects. Software quality metrics help to prioritize where additional testing is necessary by measuring the quality of the code. Most approaches to estimate whether some unit of code is suffi

  • A Semantics for Evaluation Logic (extended version)

    سند علمی۱۹۹۳Eugenio Moggi

    This paper proposes an internal semantics for the modalities and evaluation predicate of Pitts’ Evaluation Logic, and introduces several predicate calculi (ranging from Horn sequents to Higher Order Logic), which are sound and complete w.r.t. natural classes of models. It is show

  • A Hybrid Denotational Semantics for Hybrid Systems – Extended Version

    سند علمی۲۰۱۷Olivier Bouissou, Matthieu Martel

    In this article, we present a model and a denotational semantics for hybrid systems. Our model is designed to be used for the verification of large, existing embedded applications. The discrete part is modeled by a program written in an extension of an imperative language and the

  • A Game Semantics for System P (Extended Version)

    سند علمی۲۰۱۶Johannes Marti, Riccardo Pinosio

    In this paper we introduce a game semantics for System P, one of the most studied axiomatic systems for non-monotonic reasoning, conditional logic and belief revision. We prove soundness and completeness of the game semantics with respect to the rules of System P, and show that a

  • Verification of Semantically-Enhanced Artifact Systems (Extended Version)

    سند علمی۲۰۱۳CoRRBabak Bagheri Hariri, Diego Calvanese, Marco Montali, Ario Santoso

    Artifact-Centric systems have emerged in the last years as a suitable framework to model business-relevant entities, by combining their static and dynamic aspects. In particular, the Guard-Stage-Milestone (GSM) approach has been recently proposed to model artifacts and their life

  • A Step-indexed Semantics of Imperative Objects (Extended Version)

    سند علمی۲۰۰۸Cătălin Hriţcu, Jan Schwinghammer

    Step-indexed semantic models of types were proposed as an alternative to purely syntactic proofs of type safety using subject reduction. Building on work by Ahmed, Appel and others, we introduce a step-indexed model for the imperative object calculus of Abadi and Cardelli. Provid