v1.0.0 — Initial Release
Oracle Test Generator — v1.0.0
First stable release of the Oracle GitHub Action. Auto-generates tests for changed files on pull requests using AI (Claude, OpenAI, or Gemini).
Known issue fixed in v1.0.1: PR comments show empty outputs (blank test type, framework, and file). Caused by
oracle generatecrashing on startup when pip-installed due to a bad output directory path. Upgrade to@v1or@v1.0.1to get the fix.
Usage
- uses: bri-stevenski/oracle-test-ai-agent@v1
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
provider: claude # claude | openai | gemini | mock
run-tests: 'false' # execute generated tests after generation
comment: 'true' # post a PR comment with the test previewInputs
| Input | Required | Default | Description |
|---|---|---|---|
api-key |
yes | — | API key for your LLM provider |
provider |
no | claude |
LLM provider: claude, openai, gemini, mock |
prompt |
no | auto-derived | Custom generation prompt |
run-tests |
no | false |
Execute generated tests after generation |
comment |
no | true |
Post a PR comment with the generation summary |
python-version |
no | 3.11 |
Python version for the Oracle CLI |
Outputs
| Output | Description |
|---|---|
output-file |
Path to the generated test file |
test-type |
Classified test type (e2e_ui, api, frontend_unit, performance, python_unit) |
framework |
Recommended test framework (playwright, pytest, vitest, k6) |
What's included
- Composite GitHub Action wrapping the Oracle CLI
- Auto-detection of changed source files from PR diff
- AI-powered test generation with framework classification
- PR comment with generated test preview
- Support for Claude, OpenAI, and Gemini providers