Abstract:Unit testing is a stage of testing where the smallest segment of code that can be tested in isolation from the rest of the system-often a class-is tested. Unit tests are typically written as executable code, often in a format provided by a unit testing framework such as pytest for Python.Creating unit tests is a time and effort-intensive process with many repetitive, manual elements. To illustrate how AI can support unit testing, this chapter introduces the concept of search-based unit test generation. This te… Show more
Set email alert for when this publication receives citations?
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.