A Unit Test Metamodel for Test Generation - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2023

A Unit Test Metamodel for Test Generation

Résumé

Unit testing is a crucial aspect of software development, but developers often lack the time and resources to create comprehensive tests for their code. This can result in codebases that are vulnerable to bugs and issues. To address this problem, we present a unit test metamodel that enables the generation of unit tests. The metamodel provides a language-agnostic abstraction that enables automated transformation and code generation. We use the Famix family of models and tools from the Moose platform to build our metamodel and for code analysis. To generate realistic tests, we plan to use application traces consisting of method arguments and results. Our objective is to generate maintainable, human-readable tests that cover important use cases, including edge cases and rare scenarios. In this paper, we discuss related work in unit test generation, present the details of our metamodel, including its design, implementation and usage, and explore future work that will evaluate the effectiveness of our approach through case studies and experiments.
Fichier principal
Vignette du fichier
Darb23b.pdf (639.35 Ko) Télécharger le fichier
Origine : Fichiers éditeurs autorisés sur une archive ouverte
Licence : CC BY - Paternité

Dates et versions

hal-04219649 , version 1 (27-09-2023)

Licence

Paternité

Identifiants

  • HAL Id : hal-04219649 , version 1

Citer

Gabriel Darbord, Anne Etien, Nicolas Anquetil, Benoît Verhaeghe, Mustapha Derras. A Unit Test Metamodel for Test Generation. International Workshop on Smalltalk Technologies, Stephane Ducasse; Gordana Rakic, Aug 2023, Lyon, France. ⟨hal-04219649⟩
103 Consultations
126 Téléchargements

Partager

Gmail Facebook X LinkedIn More