Behaviour Preservation across Code Versions in Erlang

المؤلفون المشاركون

Pérez, Sergio
Silva, Josep
Tamarit, Salvador
Insa, David

المصدر

Scientific Programming

العدد

المجلد 2018، العدد 2018 (31 ديسمبر/كانون الأول 2018)، ص ص. 1-42، 42ص.

الناشر

Hindawi Publishing Corporation

تاريخ النشر

2018-06-13

دولة النشر

مصر

عدد الصفحات

42

التخصصات الرئيسية

الرياضيات

الملخص EN

In any alive and nontrivial program, the source code naturally evolves along the lifecycle for many reasons such as the implementation of new functionality, the optimization of a bottleneck, or the refactoring of an obscure function.

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.

نمط استشهاد جمعية علماء النفس الأمريكية (APA)

Insa, David& Pérez, Sergio& Silva, Josep& Tamarit, Salvador. 2018. Behaviour Preservation across Code Versions in Erlang. Scientific Programming،Vol. 2018, no. 2018, pp.1-42.
https://search.emarefa.net/detail/BIM-1214774

نمط استشهاد الجمعية الأمريكية للغات الحديثة (MLA)

Insa, David…[et al.]. Behaviour Preservation across Code Versions in Erlang. Scientific Programming No. 2018 (2018), pp.1-42.
https://search.emarefa.net/detail/BIM-1214774

نمط استشهاد الجمعية الطبية الأمريكية (AMA)

Insa, David& Pérez, Sergio& Silva, Josep& Tamarit, Salvador. Behaviour Preservation across Code Versions in Erlang. Scientific Programming. 2018. Vol. 2018, no. 2018, pp.1-42.
https://search.emarefa.net/detail/BIM-1214774

نوع البيانات

مقالات

لغة النص

الإنجليزية

الملاحظات

Includes bibliographical references

رقم السجل

BIM-1214774