Erlang Code Evolution Control

被引:0
|
作者
Insa, David [1 ]
Perez, Sergio [1 ]
Silva, Josep [1 ]
Tamarit, Salvador [1 ]
机构
[1] Univ Politecn Valencia, Cami Vera S-N, Valencia 46022, Spain
关键词
Code evolution control; Automated regression testing; Tracing;
D O I
10.1007/978-3-319-94460-9_8
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the software lifecycle, a program can evolve several times for different reasons such as the optimisation of a bottle-neck, the refactoring of an obscure function, etc. These code changes often involve several functions or modules, so it can be difficult to know whether the correct behaviour of the previous releases has been preserved in the new release. Most developers rely on a previously defined test suite to check this behaviour preservation. We propose here an alternative approach to automatically obtain a test suite that specifically focusses on comparing the old and new versions of the code. Our test case generation is directed by: a sophisticated combination of several already existing tools such as TypEr, CutEr, and PropEr; the choice of an expression of interest whose behaviour must be preserved; and the recording of the sequences of values this expression is evaluated to. All the presented work has been implemented in an open-source tool that is publicly available on GitHub.
引用
收藏
页码:128 / 144
页数:17
相关论文
共 50 条
  • [1] Extending Erlang for safe mobile code execution
    Brown, L
    Sahlin, D
    INFORMATION AND COMMUNICATON SECURITY, PROCEEDINGS, 1999, 1726 : 39 - 53
  • [2] RefactorErl - Source Code Analysis and Refactoring in Erlang
    Bozo, Istvan
    Horpacsi, Daniel
    Horvath, Zoltan
    Kitlei, Robert
    Koszegi, Judit
    Tejfel, Mate
    Toth, Melinda
    12TH SYMPOSIUM ON PROGRAMMING LANGUAGES AND SOFTWARE TOOLS, SPLST' 11, 2011, : 138 - 148
  • [3] Behaviour Preservation across Code Versions in Erlang
    Insa, David
    Perez, Sergio
    Silva, Josep
    Tamarit, Salvador
    SCIENTIFIC PROGRAMMING, 2018, 2018
  • [4] Semi-automated verification of Erlang code
    Fredlund, LÅ
    Gurov, D
    Noll, T
    16TH ANNUAL INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2001), PROCEEDINGS, 2001, : 319 - 323
  • [5] Similar Code Detection and Elimination for Erlang Programs
    Li, Huiqing
    Thompson, Simon
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, PROCEEDINGS, 2010, 5937 : 104 - 118
  • [6] Fifteen Years of Successfully Dialyzing Erlang and Elixir Code
    Sagonas, Konstantinos
    ERLANG '21: PROCEEDINGS OF THE 20TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON ERLANG, 2021, : 1 - 1
  • [7] Detecting Oxbow Code in Erlang Codebases with the Highest Degree of Certainty
    Benavides Rodriguez, Fernando
    Castro, Laura M.
    ERLANG '21: PROCEEDINGS OF THE 20TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON ERLANG, 2021, : 28 - 40
  • [8] Complexity metric based source code transformation of Erlang programs
    Kiraly, Roland
    ANNALES MATHEMATICAE ET INFORMATICAE, 2013, 42 : 29 - 44
  • [9] From Erlang formula to robust control
    Matthieu Jonckheere
    Queueing Systems, 2022, 100 : 457 - 459
  • [10] From Erlang formula to robust control
    Jonckheere, Matthieu
    QUEUEING SYSTEMS, 2022, 100 (3-4) : 457 - 459