Automatic Test Improvement with DSpot: a Study with Ten Mature Open-Source Projects

Benjamin Danglot 1 Oscar Luis Vera-Pérez 2 Benoit Baudry 3 Martin Monperrus 1
1 SPIRALS - Self-adaptation for distributed services and large software systems
Inria Lille - Nord Europe, CRIStAL - Centre de Recherche en Informatique, Signal et Automatique de Lille (CRIStAL) - UMR 9189
2 DiverSe - Diversity-centric Software Engineering
Inria Rennes – Bretagne Atlantique , IRISA_D4 - LANGAGE ET GÉNIE LOGICIEL
Abstract : In the literature, there is a rather clear segregation between manually written tests by developers and automatically generated ones. In this paper, we explore a third solution: to automatically improve existing test cases written by developers. We present the concept, design and implementation of a system called DSpot, that takes developer-written test cases as input (JUnit tests in Java) and synthesizes improved versions of them as output. Those test improvements are given back to developers as patches or pull requests, that can be directly integrated in the main branch of the test code base. We have evaluated DSpot in a deep, systematic manner over 40 real-world unit test classes from 10 notable and open-source software projects. We have amplified all test methods from those 40 unit test classes. In 26/40 cases, DSpot is able to
Type de document :
Article dans une revue
Empirical Software Engineering, Springer Verlag, In press, pp.1-35
Liste complète des métadonnées

https://hal.inria.fr/hal-01923575
Contributeur : Benjamin Danglot <>
Soumis le : jeudi 15 novembre 2018 - 12:51:08
Dernière modification le : samedi 17 novembre 2018 - 01:11:23

Fichier

_EmSE18__Automatic_Test_Improv...
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01923575, version 1

Citation

Benjamin Danglot, Oscar Luis Vera-Pérez, Benoit Baudry, Martin Monperrus. Automatic Test Improvement with DSpot: a Study with Ten Mature Open-Source Projects. Empirical Software Engineering, Springer Verlag, In press, pp.1-35. 〈hal-01923575〉

Partager

Métriques

Consultations de la notice

205

Téléchargements de fichiers

90