elite-playwright-runner
v1.4.5
Published
Elite Test Runner - Interactive Playwright test execution interface with beautiful reporting
Maintainers
Readme
Elite Playwright Runner v1.4.0
🚀 Elite Playwright Runner - Interactive test execution interface with beautiful reporting, real-time feedback, and Analytics Dashboard.
Features
- 🎯 Interactive Test Selection: Browse and orchestrate specific test scenarios from a beautiful UI.
- 📈 Analytics Dashboard: Comprehensive charts show success rates, failures, and execution trends.
- 🌐 Environment Selection: Quickly toggle between
dev,staging,prodor custom environments before execution. - 🔴 Live Execution Stream: Real-time terminal output with status hardening (READY, RUNNING, PASSED, FAILED).
- 📊 Elite Reporting: Stunning, forensic reporting with environment-based filtering, badges, and deep-dive evidence.
- 🎨 Premium Aesthetics: Modern dashboard design with glassmorphism and vibrant status indicators.
- 📦 Zero Config Integration: Add to any Playwright project in seconds.
Installation
npm install elite-playwright-runner --save-devSetup
1. Scenario Registry
Create a registry file at scenarios/index.js (or any path specified in your project) to expose your test scenarios to the runner:
// scenarios/index.js
const scenarios = [
{
id: 'SCENARIO-001',
name: 'User Registration Flow',
domain: 'Account',
tags: ['smoke', 'regression']
},
{
id: 'SCENARIO-002',
name: 'Checkout Process Validation',
domain: 'E-commerce',
tags: ['sanity', 'critical']
}
];
module.exports = scenarios;2. Playwright Config
Add the Elite Reporters to your playwright.config.js:
Option A: Forensic Bundled Report (Recommended)
Generates a single, self-contained HTML file (with embedded JS/Data) at reports/report.html.
module.exports = {
reporter: [
['elite-playwright-runner/lib/reporter.js']
]
};Option B: Clean & Data Reporter
Auto-cleans previous results and generates normalized JSON data for custom integrations.
module.exports = {
reporter: [
['elite-playwright-runner/lib/clean-reporter.js']
]
};Usage
Launching the Dashboard
Add a script to your package.json:
"scripts": {
"test:live": "npx elite-runner"
}Then run:
npm run test:live- Test Runner:
http://localhost:3333 - Analytics Dashboard:
http://localhost:3333/elite/analytics.html
Environment Management
The runner automatically passes the selected environment as an ENV variable. You can use this in your config:
// playwright.config.js
const env = process.env.ENV || 'dev';
require('dotenv').config({ path: `.env.${env}` });License
MIT © Turgay Sarigedik
