johndennehy101/AI Playwright Test Generator
Analyses Playwright tests using AI based on PR diffs & generates missing tests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token for API access | yes | — |
| llm-api-key | API key for LLM server | yes | — |
| llm-host | Host address for LLM server | yes | — |
| model-id | Model ID to use for generation | yes | — |
| exclude-pattern | Optional regex pattern to exclude file paths (e.g., "^versions/") | no | — |
| include-existing-tests | Include existing test files from base branch for context (true/false) | no | false |
| test-file-suffixes | Comma-separated test suffixes (e.g., ".spec,.test,.e2e,.playwright") | no | .spec,.test,.e2e,.playwright |
| test-file-roots | Comma-separated source roots where tests are located (e.g., "src,app,packages/app") | no | src,app,packages/app |
| include-source-files | Include changed source files from base branch for context (true/false) | no | false |
| run-tests | Run generated tests with Playwright (true/false) | no | false |
| app-directory | Path to the app directory (including package.json) | no | . |
| install-command | Command for installing app dependencies | no | npm ci |
| dev-server-command | Command for starting the dev server | no | npm run dev |
| dev-server-url | URL to use for testing the actual code | no | http://localhost:5175 |
| start-dev-server | Start the dev server before running tests. Set to false if playwright.config already has a webServer block (true/false) | no | true |
| test-output-path | Path (relative to app-directory) where generated test file saved | no | e2e/ai-generated.spec.ts |
| mcp-servers | JSON configuration for MCP server to provide the LLM with tools (e.g., {"playwright": {"command": "npx", "args": ["@playwright/mcp@latest"]}}) | no | — |
| dry-run | Skip LLM call and test execution, only validate diff parsing and context retrieval (true/false) | no | false |
Outputs
no outputs