Skip to main content

🛠️ Troubleshooting — Early Repo CLI (early generate-for-project)

This guide covers problems specific to the Early project CLI used in repo-level test generation. It complements the shared troubleshooting guide → which includes solutions for tokens, memory, Jest, and commit errors.


❌ No Test Files Generated

This can happen for several different reasons, ranging from configuration or permissions issues to already-covered code.

Please go through the checklist step by step in 👉 Why No Tests Were Generated

That guide explains every possible cause — including missing CLI installation, coverage command failures, validation errors, SCM permissions, and more — along with how to fix each one.


🔑 API Key Missing or Invalid

See API Key Missing →


🔐 Token Invalid or SCM Commit Fails

See Token Missing or Insufficient Permissions →


🐍 py-agent Not Found (Python)

If you see an error like py-agent is not installed, install it with:

pip install py-agent

The py-agent package is required in addition to the @earlyai/cli npm package when generating tests for Python projects.


💥 Out of Memory or Crashes

Note: This section applies to JavaScript/TypeScript projects only.

See Concurrency and Performance →

See Agents Memory Tuning →


🛑 Git Commit Fails

Note: Auto-commit is currently supported for JavaScript/TypeScript projects only. Python support for auto-commit is coming soon.

Ensure:

  • GIT_USER_NAME and GIT_USER_EMAIL are set
  • You're not using a shallow checkout

See Git or SCM Errors →


📚 More Help


👉 Next: Repo CLI FAQ