
There is a more recent version of this eprint available. Click here to view it.
Walkinshaw, N., Foster, M. orcid.org/0000-0001-8233-9873, Rojas, J.M. orcid.org/0000-0002-0079-5355 et al. (1 more author) (Submitted: 2024) Bounding random test set size with computational learning theory. [Preprint - arXiv] (Submitted)
Abstract
Random testing approaches work by generating inputs at random, or by selecting inputs randomly from some pre-defined operational profile. One long-standing question that arises in this and other testing contexts is as follows: When can we stop testing? At what point can we be certain that executing further tests in this manner will not explore previously untested (and potentially buggy) software behaviors? This is analogous to the question in Machine Learning, of how many training examples are required in order to infer an accurate model. In this paper we show how probabilistic approaches to answer this question in Machine Learning (arising from Computational Learning Theory) can be applied in our testing context. This enables us to produce an upper bound on the number of tests that are required to achieve a given level of adequacy. We are the first to enable this from only knowing the number of coverage targets (e.g. lines of code) in the source code, without needing to observe a sample test executions. We validate this bound on a large set of Java units, and an autonomous driving system.
Metadata
Item Type: | Preprint |
---|---|
Authors/Creators: |
|
Copyright, Publisher and Additional Information: | © 2024 The Author(s). This preprint is made available under a Creative Commons Attribution 4.0 International License. (https://creativecommons.org/licenses/by/4.0/) |
Keywords: | Test saturation; PAC Learning; Sample Complexity |
Dates: |
|
Institution: | The University of Sheffield |
Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Department of Computer Science (Sheffield) |
Funding Information: | Funder Grant number ENGINEERING AND PHYSICAL SCIENCE RESEARCH COUNCIL EP/T030526/1 |
Depositing User: | Symplectic Sheffield |
Date Deposited: | 19 Sep 2024 16:24 |
Last Modified: | 19 Sep 2024 16:24 |
Status: | Submitted |
Identification Number: | 10.48550/arXiv.2405.17019 |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:217291 |
Available Versions of this Item
- Bounding random test set size with computational learning theory. (deposited 19 Sep 2024 16:24) [Currently Displayed]