This Command-Line Interface (CLI) application is designed to automate the process of generating unit test code for a given function or module. It utilizes the OpenAI API to generate code based on user-specified inputs and expected outputs. The application is built using the Spring Boot framework and the Picocli library for parsing command-line arguments. It is compiled using the GraalVM native-image compiler, resulting in a native binary that can be executed quickly and with low memory usage.
The user can specify the function or module to be tested and generate code for the specified function. The generated code includes test cases for each user-specified input and expected output. The code is written in an appropriate testing framework's syntax.
Overall, the goal of this application is to simplify and automate the process of generating unit test code, allowing developers to focus on writing quality code and ensuring that it functions as expected.
- Spring Boot 3.0
- Picocli: https://picocli.info/
- GraalVM: https://www.graalvm.org/