<link rel="stylesheet" href="styles.f3b1fba60ec7970c.css">

Resumen:
Behaviour Preservation across Code Versions in Erlang

Cargando...
Miniatura

Editor

Sistedes

Publicado en

Actas de las XVIII Jornadas de Programación y Lenguajes (PROLE 2018)

Licencia Creative Commons

Excepto donde se indique lo contrario, la licencia de este ítem se describe como CC BY 4.0

Resumen

In any alive and non-trivial program, the source code naturally evolves along the lifecycle for many reasons such as the implementation of new functionality, the optimisation of a bottle-neck, the refactoring of an obscure function, etc. Frequently, these code changes affect various different functions and modules, so it can be difficult to know whether the correct behaviour of the previous version has been preserved in the new version. In this paper, we face this problem in the context of the Erlang language, where most developers rely on a previously defined test suite to check the behaviour preservation. We propose 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 it introduces novel ideas such as allowing the programmer to choose one or more expressions of interest that must preserve the behaviour, or the recording of the sequences of values to which those expressions are evaluated. All the presented work has been implemented in an open-source tool that is publicly available on GitHub.

Descripción

Acerca de Insa, David

Citación

Insa, D., Pérez Rubio, S., Silva, J., Tamarit, S.: Behaviour Preservation across Code Versions in Erlang. In: Ortega Mallén, Y. (ed.) Actas de las XVIII Jornadas de Programación y Lenguajes (PROLE 2018). Sistedes (2018). https://hdl.handle.net/11705/PROLE/2018/015