Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

verify-tests-fail-without-fix

БесплатноЗапускает вложенные скриптыНе проверен

Verifies tests catch the bug. Auto-detects test type (UI tests, device tests, unit tests) and dispatches to the appropriate runner. Supports two modes…

dotnetот dotnet★ 23 319 звёзд на GitHub17 установок в других каталогах

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

Verify Tests Fail Without Fix

Verifies tests actually catch the issue. Supports all test types (UI tests, unit tests, XAML tests, device tests) and two workflow modes.

Supported Test Types

Test Type Auto-Detected From Runner
UITest TestCases.Shared.Tests/, TestCases.HostApp/ BuildAndRunHostApp.ps1
DeviceTest DeviceTests/ Run-DeviceTests.ps1
UnitTest *.UnitTests/, Graphics.Tests/ dotnet test
XamlUnitTest Xaml.UnitTests/ dotnet test

Test type is auto-detected from changed files. Override with -TestType if needed.

-Platform is required for UI and Device tests. It selects which platform to verify the fix on. Unit and XAML tests do not require -Platform.

Managed unit/XAML execution, including clean-rebuild retries, reads the target checkout's global.json test runner. MTP-enabled targets receive MTP arguments and translated filters; retained VSTest targets keep positional project paths, --logger trx, and their original --filter. Trusted script overlays do not implicitly migrate the target checkout's SDK or test protocol. The separate regression-review caller uses the same managed selector. Trusted UI launchers likewise retain the target's NUnit/VSTest protocol for initial and retry attempts instead of forcing an older host to speak MTP.

Activation Guard

🛑 This skill ONLY verifies that existing tests reproduce a bug. Do NOT activate for:

  • Writing new tests → use write-tests-agent
  • Running tests without verification context → use run-device-tests
  • Code review → use code-review skill
  • General test advice

Requires: a platform and either test files in the PR or an explicit TestFilter.

⚠️ CRITICAL: Inverted Pass/Fail Semantics

In this skill, test outcomes mean the OPPOSITE of normal:

Test Result (without fix) Verification Result Why
Tests FAIL ✅ GOOD Tests detect the bug
Tests PASS ❌ BAD Tests miss the bug

NEVER say "verification passed" when tests PASS without the fix.

Workflow

Interpretation-Only Requests

If the caller asks how to read or report verification output, explain the result contract below without running the script. Do not turn a question about result semantics into a verification run.

Step 1: Determine Mode

  • Check if fix files exist in the PR (non-test code changes detected by the script from the git diff)
  • If fix files present → Full Verification mode (-RequireFullVerification)
  • If no fix files → Verify Failure Only mode (omit the flag)

Step 2: Construct Command

pwsh .github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 `
  -Platform <platform> `
  -TestFilter "<filter>" `
  [-RequireFullVerification]  # Only if fix files exist

Run the prescribed script once and let it own every fix-file transition and cleanup step. Do not manually mutate the worktree before or after it with git checkout, git clean, git restore, git reset, git stash, git apply --reverse/git apply -R, or an equivalent file-reversion command. If the script leaves an unexpected tracked or untracked change, report the verification as Blocked with the observed status instead of cleaning it up.

Step 3: Interpret Results

⚠️ Remember: test outcomes are INVERTED from normal!

  • If the command continues in the background and returns a shell/session ID, call the matching result-read tool with that exact ID. If it is still running, keep waiting on the same ID until it completes. Never report, summarize partial output, or end the turn before observing the completed result and its VERIFICATION PASSED, VERIFICATION FAILED, or error/timeout outcome.
  • Script outputs VERIFICATION PASSED → Tests catch the bug ✅
  • Script outputs VERIFICATION FAILED → Tests don't catch the bug ❌
  • Script outputs error/timeout → Report as Blocked

Step 4: Report

  • Always report the script's exact terminal marker and explain the observed phase results:
    • VERIFICATION PASSED in failure-only mode means the test failed without the fix, proving that it catches the bug.
    • VERIFICATION PASSED in full mode means the test failed without the fix and passed with the fix.
    • VERIFICATION FAILED because the test passed without the fix means the test does not catch the bug.
    • VERIFICATION FAILED because the test failed with the fix means the fix did not resolve the tested behavior, or the test failed for another reason.
    • An error, timeout, or unexpected worktree change is Blocked; report the observed evidence without converting it into a pass or cleaning it up.

Mode 1: Verify Failure Only (Test Creation)

Use when creating tests before writing a fix:

  • Runs tests to verify they FAIL (proving they catch the bug)
  • No fix files required
  • Perfect for test-first dev
Полный SKILL.md на GitHub

Установить verify-tests-fail-without-fix в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/Verify-TestsFail.Tests.ps1scripts/verify-tests-fail.ps1

FAQ

Что делает скилл verify-tests-fail-without-fix?

Verifies tests catch the bug. Auto-detects test type (UI tests, device tests, unit tests) and dispatches to the appropriate runner. Supports two modes - verify failure only (test creation) or full verification (test + fix validation).

Как установить скилл verify-tests-fail-without-fix?

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

Скилл verify-tests-fail-without-fix запускает скрипты?

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

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

Сравнить verify-tests-fail-without-fix с