Skip to main navigation Skip to search Skip to main content

Automatically Resolving Mismatched Invocations on Test Doubles in Test Suites

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution

Abstract

Developers use test doubles to isolate the code under test and validate interactions within complex software systems. However, as software and its tests evolve, mismatched invocations (i.e., calls to test doubles with arguments differing from those in their stubbing definitions) might appear. Mismatched invocations should be resolved to keep the test code reliable and maintainable. This paper introduces REMI, an automated technique for identifying and resolving mismatched invocations. REMI operates in three phases: (1) collecting runtime information about stubbings and invocations, (2) identifying and categorizing mismatched invocations, (3) automatically applying resolution strategies to update test suites. We implemented REMI in a prototype tool and evaluated the technique on 217 real-world Java projects. REMI resolved 171 out of 172 mismatched invocations with minimal time cost and minor changes in code complexity. We submitted pull requests to the projects considered based on the changes identified by REMI and seven resolutions were already merged by project maintainers. Our results provide strong preliminary evidence that REMI effectively and efficiently addresses mismatched invocations in test suites.

Original languageEnglish (US)
Title of host publicationProceedings - 2026 IEEE International Conference on Software Testing, Verification and Validation, ICST 2026
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages129-140
Number of pages12
ISBN (Electronic)9798319533081
DOIs
StatePublished - 2026
Event19th IEEE International Conference on Software Testing, Verification and Validation, ICST 2026 - Daejeon, Korea, Republic of
Duration: May 18 2026 → May 22 2026

Publication series

NameProceedings - 2026 IEEE International Conference on Software Testing, Verification and Validation, ICST 2026

Conference

Conference19th IEEE International Conference on Software Testing, Verification and Validation, ICST 2026
Country/TerritoryKorea, Republic of
CityDaejeon
Period5/18/26 → 5/22/26

Bibliographical note

Publisher Copyright:
© 2026 IEEE.

Keywords

  • Stubbings
  • Test Doubles
  • Test Mocking

Fingerprint

Dive into the research topics of 'Automatically Resolving Mismatched Invocations on Test Doubles in Test Suites'. Together they form a unique fingerprint.

Cite this