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

被引:1
|
作者
Kebaili, Zohra Kaouter [1 ]
Khelladi, Djamel Eddine [1 ]
Acher, Mathieu [2 ]
Barais, Olivier [3 ]
机构
[1] Univ Rennes 1, INRIA, IRISA, CNRS, Rennes, France
[2] Inria, IRISA, IUF, INSA, Rennes, France
[3] Univ Rennes 1, INRIA, IRISA, Rennes, France
关键词
Model evolution; Code co-evolution; Unit tests; Testing co-evolution; DETECTING COMPLEX CHANGES;
D O I
10.1007/978-3-031-34674-3_16
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
下载
收藏
页码:129 / 137
页数:9
相关论文
共 50 条
  • [1] An Empirical Study on Leveraging LLMs for Metamodels and Code Co-evolution
    Kebaili, Zohra Kaouter
    Khelladi, Djamel Eddine
    Acher, Mathieu
    Barais, Olivier
    JOURNAL OF OBJECT TECHNOLOGY, 2024, 23 (03): : 1 - 14
  • [2] Studying the Co-Evolution of Source Code and Acceptance Tests
    Yalcin, Ali Gorkem
    Tuglular, Tugkan
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (07) : 1011 - 1037
  • [3] Hybrid Approach for Metamodel and Model Co-evolution
    Anguel, Fouzia
    Amirat, Abdelkrim
    Bounour, Nora
    COMPUTER SCIENCE AND ITS APPLICATIONS, CIIA 2015, 2015, 456 : 563 - 573
  • [4] Identifying Metamodel Inaccurate Structures During Metamodel/Constraint Co-Evolution
    Cherfa, Elyes
    Mesli-Kesraoui, Soraya
    Tibermacine, Chouki
    Sadou, Salah
    Fleurquin, Regis
    24TH INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS 2021), 2021, : 24 - 34
  • [5] An Exploratory Experiment on Metamodel-Transformation Co-Evolution
    Khelladi, Djamel Eddine
    Rodriguez, Horacio Hoyos
    Kretschmer, Roland
    Egyed, Alexander
    2017 24TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2017), 2017, : 576 - 581
  • [6] Leveraging Code-Test Co-evolution Patterns for Automated Test Case Recommendation
    Shimmi, Samiha
    Rahimi, Mona
    3RD ACM/IEEE INTERNATIONAL CONFERENCE ON AUTOMATION OF SOFTWARE TEST (AST 2022), 2022, : 65 - 76
  • [7] CO-EVOLUTION THEORY OF GENETIC CODE
    WONG, JTF
    PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 1975, 72 (05) : 1909 - 1912
  • [8] Using Weaving Models in Metamodel and Model Co-Evolution Approach
    Anguel, F.
    Amirat, A.
    Bounour, N.
    2014 6TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (CSIT), 2014, : 142 - 147
  • [9] Automated metamodel/model co-evolution: A search-based approach
    Kessentini, Wael
    Sahraoui, Houari
    Wimmer, Manuel
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 106 : 49 - 67
  • [10] Co-evolution of the genetic code and ribozyme replication
    Stevenson, DS
    JOURNAL OF THEORETICAL BIOLOGY, 2002, 217 (02) : 235 - 253