| Bibliography | Harrison-Wirth, Julian Francis Langton: A general mocked interface for the coupling library preCICE. University of Stuttgart, Faculty of Computer Science, Electrical Engineering, and Information Technology, Bachelor Thesis No. 5 (2026). 42 pages, english.
|
| Abstract | eng: Testing adapters for the preCICE coupling library requires full solver installations and complete coupling workflows, resulting in slow feedback cycles, brittle test environments, and high development overhead. This thesis presents a lightweight mock implementation of the preCICE Participant API that addresses these challenges through configuration parsing, deterministic data modes, and simulation of key lifecycle behaviors. The mock is implemented as a single C++ source file with minimal dependencies and integrated into existing preCICE build systems. The mock enables adapter testing in isolation without external solver dependencies, provides fully reproducible outputs through seeded pseudo-random data generation, and supports both explicit and implicit coupling schemes. Empirical validation demonstrates API compatibility with existing preCICE tutorials and training materials, deterministic behavior across repeated runs, and 2-5$\times$ performance improvements over full coupled simulations. By eliminating most external dependencies and enabling fast, deterministic test execution, the mock facilitates test-driven development practices and integration into continuous integration pipelines.
ger: Das Testen von Adaptern für die preCICE-Kopplungsbibliothek erfordert aktuell vollständige Solver-Installationen und komplette Kopplungs-Workflows, was zu langsamen Feedback-Zyklen, instabilen Testumgebungen und hohem Entwicklungsaufwand führt. Diese Arbeit präsentiert eine leichte Mock-Implementierung der preCICE Participant API, die diese Herausforderungen durch Konfigurationsanalyse, deterministische Datenmodi und die Simulation wichtiger Lebenszyklusverhalten angeht. Die Mock-Implementierung besteht aus einer einzigen C++-Quelldatei mit minimalen Abhängigkeiten und ist in bestehende preCICE-Build-Systeme integriert. Die Mock-Implementierung ermöglicht das isolierte Testen von Adaptern ohne externe Solver-Abhängigkeiten, liefert vollständig reproduzierbare Ergebnisse durch die Generierung von pseudorandomisierten Daten und unterstützt sowohl explizite als auch implizite Kopplungsschemata. Die empirische Validierung zeigt die API-Kompatibilität mit bestehenden preCICE-Tutorials und Schulungsmaterialien, deterministisches Verhalten bei wiederholten Durchläufen und eine 2- bis 5-fache Geschwindigkeitserhöhung gegenüber vollständig gekoppelten Simulationen. Durch die Eliminierung der meisten externen Abhängigkeiten und die Ermöglichung einer schnellen, deterministischen Testausführung erleichtert das Mock testgetriebene Entwicklungsmethoden und die Integration in Continuous-Integration-Pipelines.
|