Browsing by Issue Date, starting with "2024-10-18"
Now showing 1 - 1 of 1
Results Per Page
Sort Options
- Using Genetic Algorithms to Automatically Generate Unit TestsPublication . Magalhães, Manuel Ferreira; Pombo, Nuno Gonçalo Coelho CostaUnit testing is one of the most important activities during the lifecycle of a software product. In this operation, it is possible to perform tests for isolated individual units of software to test their overall functionality without external interactions and to verify if they correspond to the defined system functional requirements initially set in the software product’s lifecycle. The creation of unit tests can currently be done manually, with the use of human activity, or automatically, either through the use of tools, frameworks, artificial intelligence, or dedicated algorithms for their generation. Automation in this area of unit test generation shows great potential in terms of process efficiency and in reducing costs and development time. This area of study has a significant impact on software quality, since it directly affects the software lifecycle, where the development of major components depends strictly on the good development and testing of individual units. This study presents an automatic approach for the generation of unit tests from an individual code snippet using genetic algorithms. Additionally, benchmarks are also performed between the algorithms to assess the performance of the automated process and the quality of the generated unit tests.
