When running the --unit-tests flag the following error initially occurs:
Starting generation of unit tests...
No API key found!
Please run:
npx pythagora --config --pythagora-api-key <YOUR_PYTHAGORA_API_KEY>
or
npx pythagora --config --openai-api-key <YOUR_OPENAI_API_KEY>
Then running: npx pythagora --config --openai-api-key <YOUR_OPENAI_API_KEY>
with a valid OpenAI API Key results in:
API key added to config!
Bash script exited with code 0
However running with the --unit-tests flag still results in:
Starting generation of unit tests...
No API key found!
Please run:
npx pythagora --config --pythagora-api-key <YOUR_PYTHAGORA_API_KEY>
or
npx pythagora --config --openai-api-key <YOUR_OPENAI_API_KEY>
npx pythagora --config --openai-api-key <YOUR_OPENAI_API_KEY>
System:
OS: macOS 14.1
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 1.01 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.7.1 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.5.0 - /usr/local/bin/npm
pnpm: 9.10.0 - /usr/local/bin/pnpm
Browsers:
Chrome: 128.0.6613.120
Edge: 113.0.1774.57
Safari: 17.1
pnpm
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too