Skip to content

CLI unit test generator that uses OpenAI API. Built using Spring Boot, Picocli, and GraalVM native-image.

Notifications You must be signed in to change notification settings

audreycj/unit-test-generator

Repository files navigation

CLI-Based Unit Test Code Generator Using OpenAI API

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.

Tech Stack

Authors

About

CLI unit test generator that uses OpenAI API. Built using Spring Boot, Picocli, and GraalVM native-image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published