panzerstadt / auto-unit-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Unit Tester

automatically generate unit tests for your code on save

make sure you have an .env file, and add your OpenAI API KEY to it: OPENAI_API_KEY=<YOUR API KEY>

npm install
cd auto-unit-test
npm link
cd <to your directory>
npm link auto-unit-test
auto-unit-test

changing file

auto-unit-test's .mts is compiled into .mjs, please run npm run build

TODO

[x] - refactor into smaller files
[x] - ask follow up questions to chatgpt if coverage is lower than a number
[x] - test on different file types
[x] - make doc gen optional
[ ] - https://platform.openai.com/docs/api-reference/completions/create#completions/create-stream

About


Languages

Language:JavaScript 75.4%Language:TypeScript 24.6%