Property-Driven Black-Box Testing of Numeric Functions

Published: 2023, Last Modified: 26 Jul 2024Software Engineering 2023EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: In this work, we propose a property-driven testing mechanism to perform unit testing of functions performing numerical computations. Our approach, similar to the property-based testing technique, allows the tester to specify the requirements to check. Unlike property-based testing, the specification is then used to generate test cases in a targeted manner. Moreover, our approach works as a black-box testing tool, i.e. it does not require knowledge about the internals of the function under test. Therefore, besides on programmed numeric functions, we also apply our technique to machine-learned regression models. The experimental evaluation on a number of case studies shows the effectiveness of our testing approach.
Loading