University of Leicester
Browse

Assessing and generating test sets in terms of behavioural adequacy

Download (2.06 MB)
journal contribution
posted on 2015-04-10, 10:17 authored by G. Fraser, Neil Walkinshaw
Identifying a finite test set that adequately captures the essential behaviour of a program such that all faults are identified is a well-established problem. This is traditionally addressed with syntactic adequacy metrics (e.g. branch coverage), but these can be impractical and may be misleading even if they are satisfied. One intuitive notion of adequacy, which has been discussed in theoretical terms over the past three decades, is the idea of behavioural coverage: If it is possible to infer an accurate model of a system from its test executions, then the test set can be deemed to be adequate. Despite its intuitive basis, it has remained almost entirely in the theoretical domain because inferred models have been expected to be exact (generally an infeasible task) and have not allowed for any pragmatic interim measures of adequacy to guide test set generation. This paper presents a practical approach to incorporate behavioural coverage. Our bestest approach (1) enables the use of machine learning algorithms to augment standard syntactic testing approaches and (2) shows how search-based testing techniques can be applied to generate test sets with respect to this criterion. An empirical study on a selection of Java units demonstrates that test sets with higher behavioural coverage significantly outperform current baseline test criteria in terms of detected faults.

Funding

This work is funded by a Google Focused Research Award on ‘Test Amplification’, the DSTL-funded BATSproject DSTLX1000062430 and the DSTL-funded HASTE project. This project has been funded b y theEPSRC project ’EXOGEN’ (EP/K030353/1).

History

Citation

Software Testing, Verification and Reliability, 2015

Author affiliation

/Organisation/COLLEGE OF SCIENCE AND ENGINEERING/Department of Computer Science

Version

  • VoR (Version of Record)

Published in

Software Testing

Publisher

Wiley

issn

0960-0833

eissn

1099-1689

Copyright date

2015

Available date

2015-04-10

Publisher version

http://onlinelibrary.wiley.com/doi/10.1002/stvr.1575/abstract

Editors

Offutt, J.

Language

en

Usage metrics

    University of Leicester Publications

    Categories

    No categories selected

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC