Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 971 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 971 Bytes

Autotest - ChatGPT

This extension allows you to generate unit tests for your TypeScript code using ChatGPT. Simply provide the name of a class or function, and ChatGPT will generate a unit test for it.

Installation

Install the extension from the Visual Studio Code Extension Marketplace (Ctrl+Shift+X). Restart Visual Studio Code.

Usage

To generate a unit test, open a TypeScript file in Visual Studio Code and run the "Generate Unit Tests" command (Ctrl+Shift+P and then type "Generate Unit Tests"). This will prompt you for input and then generate a unit test based on that input using ChatGPT.

Troubleshooting

If you encounter any issues with this extension, please file an issue on the GitHub repository.

Contributing

If you'd like to contribute to this extension, please fork the GitHub repository and submit a pull request.

License

This extension is licensed under the MIT License.

Credits

This extension uses the ChatGPT API from OpenAI.