English

Testing Compositionality

Software Engineering 2025-08-01 v3

Abstract

Compositionality supports the manipulation of large systems by working on their components. For model-based testing, this means that large systems can be tested by modelling and testing their components: passing tests for all components implies passing tests for the whole system. In previous work, we defined mutual acceptance for specification models and proved that this property is a sufficient condition for compositionality in model-based testing. In this paper, we present three main algorithms for using mutual acceptance in practice. First, we can verify mutual acceptance on specifications, proving compositionality for all valid implementations. Second, we give a sound and exhaustive model-based testing procedure which checks mutual acceptance on a specific black-box implementation. The result is that testing the correctness of large systems can be decomposed into testing the component implementations for uioco conformance to their specifications, and testing for environmental conformance to the specifications of their environment. Finally, we optimise this procedure further by utilizing the constraints imposed by multiple specifications at the same time. These three algorithms together allow picking the most suitable approach for a given situation, trading in more generalizable results for faster runtime by optimising for a specific context as desired.

Keywords

Cite

@article{arxiv.2407.05028,
  title  = {Testing Compositionality},
  author = {Gijs van Cuyck and Lars van Arragon and Jan Tretmans},
  journal= {arXiv preprint arXiv:2407.05028},
  year   = {2025}
}

Comments

This is a preprint of an extended version of https://doi.org/10.1007/978-3-031-71261-6_3 Formal Aspects of Component Software. FACS 2024. Lecture Notes in Computer Science, vol 15189. pp 39-56. This extended version adds new sections about combining the different introduced algorithms and how to apply them in practice, as well as several new examples in earlier sections