{"repo":"fayez-nazzal/TestGPT","free":true,"listed":false,"github":"https://github.com/fayez-nazzal/TestGPT","clone":"git clone https://github.com/fayez-nazzal/TestGPT.git","description":"Your AI testing companion that writes tests on your behalf, automated to get you to build and ship faster without sacrificing unit tests.","language":"TypeScript","stars":145,"topics":["command-line-tool","testing","unit-testing","gpt-3-5-turbo","gpt-4"],"license":"MIT","category":"cli-tools","readme_excerpt":"Your AI testing companion that writes tests on your behalf, automated to get you to build and ship faster without sacrificing tests. By default, TestGPT will use the OpenAI gpt-3.5-turbo-16k model, but you can use gpt-4, or any other model you want. Installation VSCode Extension An extension is available on the VSCode Marketplace or install directly by entering this command in the VSCode command palette (Command+P) / (Ctrl+P): CLI Tool To install the CLI tool, follow those steps 1. Install TestGPT by running one of these commands: 2. Get your OpenAI API Key by requesting access to the OpenAI API and obtaining your API key. Then export it based on your OS: - macOS or Linux: Add the following line to .zshrc or .bashrc in your home directory: Then run the command: - Windows: Go to System - Settings - Advanced - Environment Variables, click New under System Variables, and create a new entry with the key OPENAI API KEY and your OpenAI API Key as the value. Usage Universal / Plug and Play Here's a simple form of a test generation command: With more options, comes more power! You can easily specify target techs, tips, and specify a custom GPT model, along with other options. Here is a breakdown table: --inputFile -i [ Required ] Path for the input file to be tested (e.g. ./Button.tsx ). --outputFile -o [ Default: {inputFile}.test.{extension} ] Path for the output file where the generated tests will be written (e.g. ./Button.spec.tsx ). If not provided, the output file will be the sa","default_branch":null,"files":null,"tree":[],"storefront":"/r/fayez-nazzal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fayez-nazzal/TestGPT/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}