Work

Establishing the Causal Foundations of Metamorphic Testing: A Novel Application of Causal Inference for Testing Computational Modelling Software

Year: 2023
Type: dissertation
Abstract: From simulating galaxy formation to disease progression in a pandemic, computational models play an essential role in developing scientific theories and supporting government policy decisions that affect us all.Given these critical applications, a poor modelling assumption or bug could have far-reaching consequences.However, computational models suffer from a fundamental challenge that renders most testing techniques unsuitable -the test oracle problem: Given computational models predominantly simulate future events, how can we determine whether their outputs are correct?Metamorphic testing is one technique that is widely used to mitigate the oracle problem.However, computational models also possess several properties that make this approach impractical at scale, including a complex input space, long execution times, and non-determinism.Consequently, there is a need to increase the applicability of metamorphic testing to computational modelling software.To this end, in this thesis, we draw on the fundamentally causal nature of metamorphic testing and examine its overlap with causal inference -a family of statistical methodologies designed to establish salient cause-effect relationships without necessarily performing costly controlled experiments.We posit that metamorphic testing shares the same objective as causal inference and highlight a number of potential advantages of approaching the former as a problem of the latter.To investigate these potential advantages, we outline a conceptual software testing framework that introduces the fundamental components necessary to apply causal inference methods to causality-centred testing activities, such as metamorphic testing.We then provide an implementation of this framework and apply it to real-world computational modelling software, finding that causal inference methods can be used to accurately predict metamorphic test outcomes from small amounts of sparse and potentially biased data.In addition, using established graphical models of causality, we propose and evaluate a causal model-based approach for systematically generating metamorphic relations and tests capable of detecting bugs affecting causal structure.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W7046790249
Cites: 143
Cited by: 3
Related to: 9