Erlang代码演化控制
Erlang Code Evolution Control
摘要:
在软件生命周期中,程序可能会因为不同的原因而多次演变,例如瓶颈的优化,模糊功能的重构等。这些代码更改通常涉及多个功能或模块,因此很难知道以前版本的正确行为是否已在新版本中保留。大多数开发人员依赖于先前定义的测试套件来检查这种行为保留。我们在这里提出了一种替代方法来自动获得一个测试套件,专门侧重于比较旧版本和新版本的代码。我们的测试用例生成是由几个已经存在的工具,如TypEr,CutEr和PropEr的复杂组合,以及其他想法,如允许程序员选择一个必须保留行为的感兴趣的表达式,或记录该表达式被评估的值的序列。所有呈现的工作都已在GitHub上公开的开源工具中实现。
英文摘要:
During 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; and other ideas such as allowing the programmer to chose an expression of interest that must preserve the behaviour, or the recording of the sequences of values to which this expression is evaluated. All the presented work has been implemented in an open-source tool that is publicly available on GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。