Automatically generate test file for your code from the CLI so you don't need to start from scratch ✨ Built with OpenAI's Codex.
- Install from terminal,
curl -fsSL https://raw.githubusercontent.com/atikahe/auto-test/main/install.sh | sh -
- or download the program's binary that corresponds to your OS from the release page.
- Get access to OpenAI Beta and copy your API Key here.
export OPENAI_API_KEY=YOUR_API_KEY
- Go to the directory of code that you want to test.
- Run auto-test
auto-test -f file_name.py
- See generated test file on the same folder, make some modification as the code won't be complete.
- To add custom prompt, use
-p
flag followed by a string of prompt.
auto-test -f file_name.py -p "This is additional prompt"
- To overwrite default prompt, use
-o
flag. - Use
auto-test --help
for more info.
This package is not intended to replace the writing of unit-test by AI entirely. You will still need to make adjustments and mock some dependencies manually.