playwright-fixsense-reporter
v0.1.0
Published
Playwright reporter that sends test failure results to FixSense for AI-powered analysis and auto-fix
Maintainers
Readme
playwright-fixsense-reporter
Playwright reporter that sends test failure results to FixSense for AI-powered root cause analysis and auto-fix.
Install
npm install -D playwright-fixsense-reporterSetup
Add to your playwright.config.ts:
export default defineConfig({
reporter: [
['html'],
['playwright-fixsense-reporter', { apiKey: process.env.FIXSENSE_API_KEY }],
],
});Options
| Option | Env Variable | Default | Description |
|--------|-------------|---------|-------------|
| apiKey | FIXSENSE_API_KEY | — | Your FixSense API key (required) |
| apiUrl | FIXSENSE_API_URL | https://fix-sense.vercel.app/api/v1/analyze | API endpoint |
| repo | GITHUB_REPOSITORY | Auto-detected from git | Repository full name |
| prNumber | — | Auto-detected from CI | PR/MR number |
| runId | GITHUB_RUN_ID | Auto-detected from CI | CI run ID |
| verbose | — | false | Print detailed output |
CI Environment Detection
The reporter auto-detects CI environment variables from:
- GitHub Actions:
GITHUB_REPOSITORY,GITHUB_REF,GITHUB_RUN_ID - GitLab CI:
CI_PROJECT_PATH,CI_MERGE_REQUEST_IID,CI_PIPELINE_ID - Azure DevOps:
BUILD_BUILDID,SYSTEM_PULLREQUEST_PULLREQUESTID - Bitbucket Pipelines: detected via git remote
What you get
For each failing test, FixSense provides:
- Root cause analysis
- App bug vs test bug classification
- Flakiness score (0-100)
- Suggested fix
- Optional: AI auto-fix PR
View results on your FixSense Dashboard.
License
MIT
