An Investigation of Search Behaviour in Search-Based Unit Test Generation

dc.contributor.advisorDirk Sudholt
dc.contributor.authorNASSER MOHAMMED NASSER ALBUNIAN
dc.date2020
dc.date.accessioned2022-05-28T19:41:44Z
dc.date.available2022-05-28T19:41:44Z
dc.degree.departmentعلوم الحاسب الآلي
dc.degree.grantorUniversity of Sheffield
dc.description.abstractAs software testing is a laborious and error-prone task, automation is desirable. Search-based unit test generation applies evolutionary search algorithms to generate software tests and, in the context of unit testing object-oriented software, Genetic Algorithms (GAs) are frequently employed to generate unit tests that maximise code coverage. Although GAs are effective at generating tests that achieve high code coverage, they are still far from being able to satisfy all test goals (e.g., covering all branches). While some general limitations are known, there is still a lack of understanding of the search behaviour during the optimization, making it difficult to identify the factors that make a search problem difficult. Therefore, this thesis aims to investigate the search behaviour when GAs are applied to generate object-oriented unit tests and, more specifically, identify the reasons why the search fails to achieve the desired test goals. This is achieved by investigating (1) the fitness landscape structure and the impact of its features on the generation of unit tests and (2) the influence of population diversity on generating potential unit tests. Based on the outcome of this investigation, the impact of test case reduction on the landscape features and population diversity is also investigated. Our results reveal that classical indicators for rugged fitness landscapes suggest well searchable problems in the case of unit test generation, but the fitness landscape for most problem instances is dominated by detrimental plateaus. However, increasing diversity does not have a beneficial effect on coverage in general, but it may improve coverage when diversity is promoted adaptively. In fact, increasing diversity has a negative impact on the individual length, which can also be mitigated with the adaptive diversity. Applying the test case reduction seems to be promising in improving the landscape structure and reducing the negative side effects of diversity on length, but have no considerable impact on the search performance.
dc.identifier.urihttps://drepo.sdl.edu.sa/handle/20.500.14154/39813
dc.language.isoen
dc.titleAn Investigation of Search Behaviour in Search-Based Unit Test Generation
sdl.thesis.levelDoctoral
sdl.thesis.sourceSACM - United Kingdom

Files

Copyright owned by the Saudi Digital Library (SDL) © 2025