Towards Leveraging Tests to Identify Impacts of Metamodel and Code Co-evolution - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2023

Towards Leveraging Tests to Identify Impacts of Metamodel and Code Co-evolution

Abstract

Models play a significant role in Model-Driven Engineering (MDE) and metamodels are commonly transformed into code. Developers intensively rely on the generated code to build language services and tooling, such as editors and views which are also tested to ensure their behavior. The metamodel evolution between releases updates the generated code, and this may impact the developers' additional, client code. Accordingly, the impacted code must be co-evolved too, but there is no guarantee of preserving its behavior correctness. This paper envisions an automatic approach for ensuring code co-evolution correctness. It first aims to trace the tests impacted by the metamodel evolution before and after the code co-evolution, and then compares them to analyze the behavior of the code. Preliminary evaluation on two implementations of OCL and Modisco Eclipse projects. showed that we can successfully traced the impacted tests automatically by selecting 738 and 412 tests, before and after co-evolution respectively, based on 303 metamodel changes. By running these impacted tests, we observed both behaviorally correct and incorrect code co-evolution.
Fichier principal
Vignette du fichier
Towards_Leveraging_Tests_to_Identify_Impacts_of_Metamodel_and_Code_Co_evolution_CAISE23_forum.pdf (490.4 Ko) Télécharger le fichier
Origin Files produced by the author(s)

Dates and versions

hal-04126496 , version 1 (13-06-2023)

Licence

Identifiers

Cite

Zohra Kaouter Kebaili, Djamel Eddine Khelladi, Mathieu Acher, Olivier Barais. Towards Leveraging Tests to Identify Impacts of Metamodel and Code Co-evolution. CAiSE 2023 - 35th International Conference on Advanced Information Systems Engineering, Jun 2023, Zaragoza, Spain. pp.129-137, ⟨10.1007/978-3-031-34674-3_16⟩. ⟨hal-04126496⟩
68 View
70 Download

Altmetric

Share

Gmail Mastodon Facebook X LinkedIn More