Creating a test with IntelliTest
In this section, our goal is to explore how to use IntelliTest for creating tests. For that, we will first learn how to enable the IntelliTest functionality. Next, we will learn how to execute it and generate tests with it. At the end of the section, we will learn how to organize our generated unit tests by saving, executing, and reviewing them.
IntelliTest offers characterization tests, allowing you to understand how code behaves through a suite of traditional unit tests. This suite can serve as a regression suite, aiding in handling the challenges of refactoring legacy or unfamiliar code.
Through guided test input generation, IntelliTest employs an open-code analysis and constraint-solving approach to automatically produce precise test input values, often without requiring user intervention. It generates factories for complex object types and allows customization of these factories to meet specific requirements. Assertions specified as correctness...