Overview
Key Features
- PR-Driven Test Generation: Automatically triggers when a Pull Request is merged into the main branch of the application repository, ensuring tests are always aligned with the latest changes.
- Diff-Based Intelligence: Extracts the diff between the latest merged PR and the previous main branch state, sending only the relevant changes to the AI model for precise test generation.
- AI-Generated Playwright Tests: Uses Google Gemini to generate Playwright .spec.ts files based solely on code changes, minimizing redundant or outdated tests.
- Decoupled Test Repository: Commits generated tests to a separate Playwright repository, keeping application code and test automation cleanly separated.
- Fully Automated Execution: A secondary GitHub Action in the Playwright repository automatically runs the newly generated tests against the application.
- Zero Manual Test Writing: Eliminates repetitive test authoring while maintaining strong regression coverage in the CI/CD pipeline.
Technologies Used
- Node.js: For scripting automation logic and integrating with AI APIs.
- GitHub Actions: To orchestrate workflows on PR merge, test generation, commits, and execution.
- Playwright: For robust, end-to-end browser testing.
- Google Gemini AI: To intelligently generate test cases based on code diffs.
- Git & GitHub: For version control and repository orchestration.