publish-test-reports
БесплатноБез исполняемых скриптовНе проверенSet up and publish Playwright test report artifacts to GitHub Pages via a per-client test-reports repo (forked from ProxiBlue/test-reports template). Use when…
от ProxiBlue★ 17 звёзд на GitHubОб этом скилле
Publish Test Reports Skill
Overview
Playwright HTML test reports are published to a per-client GitHub Pages site so clients can view test results visually. Only fully successful runs on the live branch are published.
- Template repo:
ProxiBlue/test-reports(GitHub template) - Per-client repos: e.g.
ITToolsAU/test-reports,ClientOrg/test-reports - Publish script:
publish-report.shlives inside each client's test-reports repo
Setup in a new environment
Step 1: Determine the client's GitHub org
# Read from CLAUDE.md or git remote
ORG=$(git remote get-url origin | sed 's|.*github.com[:/]\([^/]*\)/.*|\1|')
echo "Org: $ORG"
Step 2: Check if client test-reports repo exists
gh repo view "$ORG/test-reports" --json name 2>/dev/null && echo "EXISTS" || echo "NEEDS CREATION"
Step 3: Create from template if needed
# Create private repo from ProxiBlue template
gh repo create "$ORG/test-reports" --private \
--description "Playwright test report artifacts — viewable via GitHub Pages"
# Clone template content
TMPDIR=$(mktemp -d)
git clone [email protected]:ProxiBlue/test-reports.git "$TMPDIR"
cd "$TMPDIR"
git remote set-url origin "[email protected]:$ORG/test-reports.git"
git push -u origin main
# Enable GitHub Pages
gh api "repos/$ORG/test-reports/pages" -X POST \
-f "source[branch]=main" -f "source[path]=/"
Step 4: Clone into the project
Standard location is tests/test-reports/:
REPORTS_DIR="tests/test-reports"
if [ ! -d "$REPORTS_DIR" ]; then
git clone "[email protected]:$ORG/test-reports.git" "$REPORTS_DIR"
fi
Add to .gitignore if not already:
tests/test-reports/
Step 5: Verify setup
ls -la tests/test-reports/publish-report.sh
# Should exist and be executable
Publishing reports
When to publish
After a full test suite run on the live branch where all tests pass.
Command
tests/test-reports/publish-report.sh \
<site-name> \
<path-to-test-results> \
<project-root>
Arguments:
site-name— identifier for this project (e.g.lcd,store-name)report-dir— path containing one or more*-reports/directories (see "Expected report directory structure" below — any suffix works, not justhyva-)project-dir— project git root (for branch check + commit ref)
Example (LCD site):
tests/test-reports/publish-report.sh \
lcd \
tests/m2-hyva-playwright/test-results/lcd \
/var/www/html
What the script does
- Branch gate: Checks project is on
live— skips otherwise - Pass gate: Scans all JSON reports — aborts if ANY test failed
- Copies HTML reports into
site/date/suite/structure - Updates
reports.jsonindex - Commits + pushes → GitHub Pages auto-deploys
- Prunes to last 20 runs per site
Viewing reports
https://<org>.github.io/test-reports/ # Index of all runs
https://<org>.github.io/test-reports/<site>/<date>/ # Specific run
Example: https://ittoolsau.github.io/test-reports/lcd/2026-04-27_0830/
Referencing in tickets/PRs
Test results: https://ittoolsau.github.io/test-reports/lcd/2026-04-27_0830/
Known extension pattern — auto-deploy-on-pass (LCD only, NOT template default)
LCD's fork (ITToolsAU/test-reports) diverges from the ProxiBlue/test-reports
template: after a successful publish, its publish-report.sh ALSO does an
git commit --allow-empty + git push origin live in the project repo, then
posts a "Scheduled to Deploy Live" comment and swaps labels on the GitHub
issue extracted from recent commit messages. In effect, a green full-suite
report on live becomes an automated production-deploy trigger, not just a
report publish.
This is intentionally NOT part of the template or this skill's default
setup steps. A green test run does not imply authorization to push to
production on every project — e.g. pvcpipesupplies's own CLAUDE.md states
"Never push or create a PR without the user's explicit permission", which
this pattern would violate if blindly copied there. Treat it as a reference
implementation for a specific automation LCD's owner opted into, not
something /pb-skills:publish-test-reports sets up by default.
If a project genuinely wants this: fork the auto-deploy block from LCD's
publish-report.sh (the part after "Commit and push" in the report-repo
section) explicitly, confirm it matches that project's own deploy-approval
rules, and document the opt-in in that project's own CLAUDE.md — don't carry
it over silently as part of routine template setup.
Fleet status
As of 2026-08-15, LCD (ITToolsAU/test-reports) is the only project actually
using this — last published run was 2026-05-15 (stale). No other project
(including pvcpipesupplies) has forked the template or wired this up yet.
The mechanism and template are fleet-ready; rollout to additional projects is
a separa
Установить publish-test-reports в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл publish-test-reports?
Set up and publish Playwright test report artifacts to GitHub Pages via a per-client test-reports repo (forked from ProxiBlue/test-reports template). Use when the user asks to publish test results, set up test reporting, wire up report publishing, or check published reports. Also use after running a full test suite on the live branch.
Как установить скилл publish-test-reports?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл publish-test-reports запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic