Overview
View Playwright test results from GitHub Raw or GitHub Pages URLs
************************************************************ OVERVIEW ************************************************************ Playwright Test Results Badge is a lightweight Chrome extension that helps you quickly see your Playwright test status directly from your browser toolbar. Version 1.3 introduces full support for private repositories via GitHub Pages, allowing you to monitor secure projects safely without sharing sensitive credentials. Instead of opening CI dashboards or scrolling through logs, you get an instant visual summary of your test results that stays visible and automatically updated. ************************************************************ IDEAL FOR ************************************************************ β’ π¨βπ» Developers & QA engineers β’ π§ͺ Teams monitoring private CI/CD pipelines β’ π Students learning testing or DevOps β’ π Anyone using Playwright with automated tests ************************************************************ WHY INSTALL THIS EXTENSION? ************************************************************ β’ β Instantly know if your tests passed or failed β’ β±οΈ Saves time by avoiding CI dashboards and logs β’ π Automatically refreshes every 1 minute β’ π Private Repo Support: Monitor secure projects using GitHub Pages β’ π‘οΈ Privacy-first: no accounts, no tracking, no external servers ************************************************************ WHAT THE EXTENSION DOES ************************************************************ --- LIVE BADGE ON THE CHROME TOOLBAR --- β’ π© Green 42 / 0 means all tests passed β’ π₯ Red 41 / 1 means one or more tests failed β’ β¬ Gray ? means no tests detected (crash, sync error, or empty summary file) This lets you see project health at a glance, even while browsing other sites. --- DETAILED POPUP VIEW --- β’ π Total number of tests executed β’ β Passed tests count β’ β Failed tests count β’ π Last updated timestamp β’ π Manual refresh button ************************************************************ QUICK SETUP GUIDE (6 STEPS) ************************************************************ STEP 1: INSTALL PLAYWRIGHT ------------------------------------------------------------ If starting fresh, run: "npm init playwright@latest" - Choose TypeScript - Choose "Add a GitHub Actions workflow: TRUE" - This creates an example test and a .yml file. STEP 2: CREATE THE SUMMARY REPORTER ------------------------------------------------------------ Create "summary-reporter.js" in your project root: const fs = require('fs'); class SummaryReporter { onBegin(config, suite) { this.rootSuite = suite; } onEnd(result) { const summary = { schemaVersion: 1, passed: 0, failed: 0, flaky: 0, total: 0, startTime: new Date().toISOString(), isSummary: true }; if (this.rootSuite) { for (const test of this.rootSuite.allTests()) { const out = test.outcome(); if (out === 'expected') summary.passed++; if (out === 'unexpected') summary.failed++; if (out === 'flaky') summary.flaky++; } } summary.total = summary.passed + summary.failed + summary.flaky; fs.writeFileSync('test-summary.json', JSON.stringify(summary, null, 2)); } } module.exports = SummaryReporter; STEP 3: CONFIGURE PLAYWRIGHT ------------------------------------------------------------ Update "playwright.config.ts" to include the reporter: reporters: [ ['./summary-reporter.js'], ['html'], ['list'] ], STEP 4: UPDATE CI WORKFLOW (SUPPORTS PRIVATE REPOS) ------------------------------------------------------------ Replace your ".github/workflows/playwright.yml" with this content: name: Deploy results.json to GitHub Pages on: push: branches: [main] workflow_dispatch: permissions: contents: write pages: write id-token: write jobs: deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies run: npm ci - name: Install Playwright run: npx playwright install --with-deps - name: Run Playwright tests run: npx playwright test - name: Commit updated results if: always() run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add test-summary.json git commit -m "Update test summary [skip ci]" || echo "No changes" git push - name: Prepare Pages artifact if: always() run: | mkdir -p public cp test-summary.json public/results.json touch public/.nojekyll - name: Upload artifact if: always() uses: actions/upload-pages-artifact@v3 with: path: public - name: Deploy to Pages id: deployment if: always() uses: actions/deploy-pages@v4 STEP 5: INITIALIZE YOUR SUMMARY ------------------------------------------------------------ 1. Run your tests locally one time: "npx playwright test" (Tip: You can use the example tests that come with Playwright!) 2. This creates the "test-summary.json" file. 3. Commit and push ALL files (including the summary) to GitHub. STEP 6: CONNECT & MONITOR ------------------------------------------------------------ 1. In your Repo Settings > Pages, set source to "Deploy from a branch" and select "main". 2. After the workflow runs, copy your Pages URL (e.g. https://user.github.io/repo/results.json). 3. Paste it into the extension and click Save! ************************************************************ PRIVACY AND SECURITY ************************************************************ β’ π No accounts or tracking β’ π« No external analytics servers β’ π Data stays in your browser β’ π Permissions: storage (save URL) and alarms (auto-refresh) License: MIT ************************************************************ CREATED BY FARUK HASAN ************************************************************
0 out of 5No ratings
Details
- Version1.3
- UpdatedDecember 27, 2025
- Size16.28KiB
- LanguagesEnglish (United States)
- DeveloperWebsite
Email
farukqmul@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes
Support
For help with questions, suggestions, or problems, visit the developer's support site