This is the latest version of this eprint.
Walkinshaw, N. orcid.org/0000-0003-2134-6548, Foster, M., Rojas, J.M. et al. (1 more author) (2024) Bounding random test set size with computational learning theory. In: Baresi, L., (ed.) Proceedings of the ACM on Software Engineering (PACMSE). ACM International Conference on the Foundations of Software Engineering (FSE 2024), 17-19 Jul 2024, Porto de Galinhas, Brazil. Association for Computing Machinery , pp. 2538-2560.
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: | Proceedings Paper |
---|---|
Authors/Creators: |
|
Editors: |
|
Copyright, Publisher and Additional Information: | © 2024 Copyright held by the owner/author(s). This work is licensed under a Creative Commons Attribution-ShareAlike International 4.0 License. (https://creativecommons.org/licenses/by-sa/4.0/) |
Keywords: | PAC Learning; Sample Complexity; Test saturation |
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: | 24 Apr 2024 10:22 |
Last Modified: | 19 Sep 2024 16:31 |
Status: | Published |
Publisher: | Association for Computing Machinery |
Refereed: | Yes |
Identification Number: | 10.1145/3660819 |
Related URLs: | |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:211547 |
Available Versions of this Item
-
Bounding random test set size with computational learning theory. (deposited 19 Sep 2024 16:24)
- Bounding random test set size with computational learning theory. (deposited 24 Apr 2024 10:22) [Currently Displayed]