Command Palette

Search for a command to run...

Назад к скиллам
скилл № 24116

e2e-spec-report

Create source-grounded Given/When/Then and Gherkin reports for the E2E tests in a folder.

БесплатноЗапускает вложенные скрипты
dejanrот dejanr★ 15 звёзд на GitHub

Установить e2e-spec-report в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

E2E specification report

Turn a folder of E2E tests into a readable comparison and Gherkin specification. The agent interprets code; the scripts discover declarations, validate the inventory, and render artifacts. Running the renderer alone does not extract behavior.

Invoke with /skill:e2e-spec-report /path/to/module-or-e2e-folder.

Resolve SKILL_DIR to this directory. Resolve REPO from the user's application checkout, not the dotfiles repository publishing this skill.

1. Establish scope

Use the folder supplied after /skill:e2e-spec-report. If absent, ask for it. Read that checkout's agent instructions and test-runner configuration.

Default to source inspection without running tests, starting application services, or installing dependencies. Use a fresh OS temp directory for analysis and output unless the user selects a destination.

For Playwright, find its actual entry files, imports, wrappers, and testMatch/testIgnore rules. Inspect .spec.*, .e2e.*, .smoke.*, and relevant .test.* files. Classify unit tests separately. Other frameworks require a source-grounded discovery adapter; the bundled scanner is Playwright-oriented.

WORK=$(mktemp -d "${TMPDIR:-/tmp}/e2e-spec.XXXXXX")
node "$SKILL_DIR/scripts/scan.mjs" "$FOLDER" --repo "$REPO" \
  --output "$WORK/inventory.json"

The scanner resolves TypeScript from the target checkout. If unavailable, locate an existing installation and pass --typescript /path/to/typescript.js. If none exists, report the blocker; do not silently replace AST discovery with regex counts.

Done: every candidate entry file has a classification, and the discovery manifest exists.

2. Account for declarations and registration

Read references/inventory.md before editing the manifest.

Inspect each entry file and its setup/teardown hooks. Follow every registration candidate into its implementation, including shared helpers outside the requested folder. Record additional generated declarations and their evidence in the manifest.

Resolve aliases, title constants, nested loops, brand/device/vendor lists, licensing filters, inherited skips, conditional skips, expected failures, and environment branches. Expand each statically known variant into a separate case. Retain browser/device suite context when titles repeat.

Use bounded reads and process one entry file at a time. Store substantial intermediate results in files rather than codemode state. Inspect syntax and literals; never evaluate test modules or guessed expression strings to expand cases. Test collection can execute module code too.

Record unresolved expressions or registrations explicitly. Partial inventories must identify what is missing, not invent a case count.

Done: each discovered declaration has cases or an unresolved reason; every registration candidate has a written resolution or unresolved reason.

3. Derive observable behavior

For every case, read the full implementation and every helper that affects setup, actions, assertions, or execution conditions. Follow page objects and fixture defaults until the behavior is clear.

Write:

  • Given: fixture, permissions, saved state, and relevant hook setup.
  • When: actions the implementation actually performs.
  • Then: assertions the implementation actually makes.

Preserve the exact resolved original title. Put title/implementation differences in notes; leave the test code unchanged. Separate static skips from conditional skips, omitted branches, and early returns. Distinguish stubbed responses from real integration calls.

Use the interpretation checklist to avoid turning actions, helper names, or comments into stronger assertions. Keep claims tied to source locations, including helper evidence.

Author cases in the canonical inventory or separate JSON arrays per entry file. Keep Given/When/Then as single-line strings. If a prior inventory is the selected base, copy these strings exactly rather than paraphrasing for Gherkin.

Done: every documented case has source-grounded Given/When/Then, execution metadata, and notes for any meaningful mismatch.

4. Render and verify

python3 "$SKILL_DIR/scripts/report.py" build "$WORK/inventory.json"

If cases are in separate arrays, repeat --cases "$WORK/cases/<entry>.json". Read --help for the interface. Set --outdir only to a new directory; existing output is never overwritten.

Set OUTPUT to the returned directory. Use resolved absolute paths across separate tool calls; shell variables may not persist.

The builder produces:

  • report.html: styled, searchable Gherkin and title-comparison views.
  • report.md: portable specification and notes.
  • specification.feature: one Scenario per expanded case.
  • inventory.csv and inventory.json: exact titles, parameters, steps, and provenance.
  • sources.html: escaped excerpts around allowlisted source references.

Ve

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • assets/report.css
  • assets/report.js
  • references/inventory.md
  • scripts/report.py
  • scripts/scan.mjs
  • scripts/scan.test.mjs
  • scripts/test_report.py

FAQ

Что делает скилл e2e-spec-report?

Create source-grounded Given/When/Then and Gherkin reports for the E2E tests in a folder.

Как установить скилл e2e-spec-report?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл e2e-spec-report запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить e2e-spec-report с