Compressing Automatically Generated Unit Test Suites Through Test Parameterization - Fundamentals of Software Engineering Access content directly
Conference Papers Year : 2021

Compressing Automatically Generated Unit Test Suites Through Test Parameterization

Aidin Azamnouri
  • Function : Author
  • PersonId : 1161215
Samad Paydar
  • Function : Author
  • PersonId : 1030382

Abstract

Test maintenance has recently gained increasing attention from the software testing research community. When using automated unit test generation tools, the tests are typically created by random test generation or search-based algorithms. Although these tools produce a large number of tests quickly, they mostly seek to improve test coverage; overlooking other quality attributes like understandability and readability. As a result, maintaining a large and automatically generated test suite is quite challenging. In this paper, by utilizing a high level of similarity among the automatically generated tests, we propose a technique for automatically abstracting similar tests through transforming them into parameterized tests. This approach leads to the improvement of readability and understandability by reducing the size of the test suite and also by separating data and logic of the tests. We have implemented this technique as a plugin for IntelliJ IDEA and have evaluated its performance over the test suites produced by the Randoop test generation tool. The results have demonstrated that the proposed approach is able to effectively reduce the size of the test suites between 11% and 96%, with an average of 66%.
Fichier principal
Vignette du fichier
506725_1_En_15_Chapter.pdf (343.75 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-04074527 , version 1 (19-04-2023)

Licence

Attribution

Identifiers

Cite

Aidin Azamnouri, Samad Paydar. Compressing Automatically Generated Unit Test Suites Through Test Parameterization. 9th International Conference on Fundamentals of Software Engineering (FSEN), May 2021, Virtual, Iran. pp.215-221, ⟨10.1007/978-3-030-89247-0_15⟩. ⟨hal-04074527⟩
12 View
0 Download

Altmetric

Share

Gmail Facebook X LinkedIn More