microsoft/github-copilot-modernization/verify-test-baseline
Claude Code and agent skill by microsoft/github-copilot-modernization
- vendor
Checking that the SKILL.md file is still in the repository.
Generate and run post-migration tests from the frozen baseline specification.
Install
npx vskill@latest install microsoft/github-copilot-modernization/verify-test-baselineSKILL.md
The same SKILL.md was published earlier as microsoft/github-copilot-modernization/verify-test-baseline.
Goal
Generate executable *PostMigrationIT tests from the frozen baseline specification and run them against the migrated application.
The baseline phase produces no test code — it produces a precise specification, including the test-cases, infra-decision-table, and testdata. This skill is the sole place where integration test code is generated.
When the baseline decision table includes testcontainer rows, verification MUST run those dependencies against containerized emulators/services (not cloud resources and not mocks).
User Input
- taskid — Identifier for this verification run.
- modernization-work-folder — Folder under which the verification summary and decision table are written.
Terminology
Event-sourced subscriber — any entry point invoked by an external event source rather than by a synchronous caller: message-queue listeners, event-bus / event-hub / event-grid handlers, storage-event triggers (e.g. blob-created or object-deleted handlers), DB change-feed / CDC handlers, inbound-email handlers, file-system watchers. Throughout this document, "event-sourced subscriber" refers to this entire family; the only legitimate trigger for such an entry point is a real event produced on the declared source via its SDK or wire protocol.
Testcontainer dependency — an external dependency marked testcontainer in infra-decision-table.md; verification must instantiate and use a containerized emulator/service for that dependency via the project's Testcontainers stack.
TestContainer References
When any dependency is marked testcontainer, read and apply these references before writing tests:
Principles
- The spec is the source of truth. If a test case cannot be generated from its fields as-written, the defect is in the spec — coordinate a re-freeze (Step 8), do not invent details in the generated test.
- Post-migration tests are additions, never replacements.
- Strict 1:1 mapping. Exactly one test method per
TC-*intest-cases.md. No extra tests, no missing tests. Test method count == TC count. Banned extras include: infrastructure connectivity tests ("can connect to DB", "can create SDK client"), SDK sanity tests ("can send/receive message", "can read secret"), backing-store CRUD tests that have no entry point in the inventory, and authentication/credential validation tests. If it is not aTC-*, it must not exist. - TC-ID traceability. Every test method MUST include its
TC-*ID in the method name itself (e.g.tcEjb001_collectLocationHappyPath,tc_ejb_001_collect_location_happy_path). A comment or display name alone is insufficient — the method name is the primary index for auditing coverage. - Trigger fidelity over convenience. The trigger is the contract. Any test whose trigger is not the declared
Entry Point— for example, one that invokes a cloud SDK, a repository, an internal service, or a private helper instead — is invalid and must be regenerated, even if it passes. If the spec declares an application method as the entry point, the test MUST call that method through its public interface — not re-implement the logic inline using lower-level APIs (e.g. direct DB writes, manual computations). If the spec declares a message-queue listener as the entry point, the test MUST send a message to the queue — not call the listener's handler or an internal service directly. - Assertion completeness. A test must assert every bullet under
Expected Response,Resource Verification, andNegative Verification. Existence-only or no-throw-only checks (asserting only that a resource exists, that a call did not throw, or that a value is non-null) are insufficient on their own. - No production-bug workarounds. If a test fails because the migrated code is wrong, hand the work back to the migration engineer per Step 7. Do not patch the test to bypass the broken entry point, and do not loosen / rewrite assertions to accept the buggy response. "Documenting the current behavior" by changing expected response codes, status, or payload to match what the broken code returns is a workaround — not a fix.
- No hardcoded environment topology. Generated tests must not hardcode environment-specific resource identifiers (account names, namespaces, queue/topic names, hostnames, connection strings, tenant/subscription IDs, database hosts, secrets). Resolve these from test-only configuration wired to
infra/outputs and environment variables. - No Azure resource writes. This skill MUST NOT create, update, delete, or otherwise modify Azure resources. Any
azCLI command that performs a write operation (e.g.az role assignment create,az storage account create,az keyvault set-policy,az group create,az resource update,az ad app create) is forbidden. Read-onlyazcommands (e.g.az account show,az role assignment list,az resource list) are permitted for diagnostic purposes only. If a missing role assignment, resource, or configuration is identified, hand over to the Infra Expert per Step 7 — do not provision or reconfigure Azure resources from within this skill.
Layout
Inputs (frozen, produced by the setupBaseline task) live under each in-scope module's test source root — the directory the build tool already uses for tests (e.g. src/test/ for Maven/Gradle Java, tests/ for Python / Node / Go, <module>/test/ for multi-module repos). In a multi-module project, each module that was determined to be in-scope during the baseline phase has its own independent test-cases/ folder. Modules that were marked out-of-scope (no migration-relevant resource access) will not have a test-cases/ folder — skip them.
Outputs of this skill:
${modernization-work-folder}/${taskid}/post-migration-plan.md— the TC→test planning table written in Step 4 (created/overwritten on each run).*PostMigrationITsource files — follow the project's existing test layout conventions.${modernization-work-folder}/${taskid}/verification-summary.md— final report (Step 9).
Reused inputs from the baseline phase:
<test-source-root>/test-cases/infra-decision-table.md— mock/real/testcontainer decision per external dependency, produced bycreate-test-baseline. This skill consumes it as-is.
Workflow
Step 1 — Verify Baseline Integrity
For each in-scope module, locate <module-test-source-root>/test-cases/ and confirm test-cases.md, infra-decision-table.md, and testdata/ are byte-identical to the baseline commit. Any drift → request revert. If test-cases.md is missing entirely for a module that was marked in-scope, abort: the setupBaseline task was supposed to run first — surface this as a plan-ordering bug, do not proceed. Modules without a test-cases/ folder were determined out-of-scope during the baseline phase (no migration-relevant resource access) — skip them.
Step 2 — Load Infra Decision Table from Baseline (mandatory gate)
The mock/real/testcontainer decision for every external dependency is made in the baseline phase, not here. Verification reuses it as-is.
- Load
<test-source-root>/test-cases/infra-decision-table.mdproduced bycreate-test-baseline. If it is missing, abort and surface this as a plan-ordering bug — do not regenerate it here. - Sanity-check the table against runtime prerequisites:
- every row marked real must still have a matching provisioned resource in
infra/. - every row marked testcontainer must still have a viable emulator/container strategy (image, config, dependency containers, and test framework support) in the repo and test runtime.
If prerequisites drift (resource removed, endpoint changed, credential type changed, missing emulator config, unsupported testcontainers version), surface the drift → Step 8 (re-freeze cycle); do not silently downgrade decision modes here.
- Treat the loaded table as the source of truth for all subsequent steps.
Do not proceed until the table is loaded and the sanity check passes.
Step 3 — Validate Spec Readiness
Before generating code, audit test-cases.md against the Required Field Checklist defined in Step 5 of the create-test-baseline skill.
- Every test case has all required fields populated (ID, Category, Entry Point Type, Entry Point, Trigger, Preconditions, Expected Response, Resource Verification, Negative Verification where required, Data References).
- No banned phrasings remain.
- Every
testdata/...path referenced exists. - The Entry-Point Inventory matches what is exercised by the cases.
Any defect → Step 8 (re-freeze cycle). Do not paper over spec defects in generated code.
Step 4 — Plan Post-Migration Tests
Inputs: test-cases.md, the infra decision table loaded in Step 2.
- Mirror the spec, exactly once. For each
TC-*intest-cases.md, plan exactly one test method. No extra tests. No collapsing two TCs into one. No splitting one TC across multiple test methods (sub-steps go inside the single method body). - Map each entry point to its concrete trigger mechanism on the new stack. The
Triggerfield is technology-agnostic; resolve it to the actual mechanism that exists in the migrated codebase. Always trigger via the same outside-in path the entry point is invoked from in production. Pick the most realistic public driver the test framework offers:
- HTTP / network handlers → framework's HTTP test client.
- CLI commands → CLI runner / process invocation.
- Library APIs → call the published API directly.
- EJB entry points (remote/local business interfaces) → invoke through the container-managed EJB interface/proxy used by external callers; do not call bean implementation classes directly.
- Event-sourced subscribers (see Terminology) → produce a real event on the declared source via its SDK or wire protocol (publish a message to the queue/topic, upload/delete the blob, insert/update the watched DB row, send an SMTP message, write the watched file). The application is the subscriber; the only realistic trigger is a real event on the source it subscribes to.
- Scheduled jobs / cron → framework's "run now" hook (e.g. scheduler
triggerJob, manual invocation of the scheduled-task dispatcher). This is framework-driven, not SDK-driven.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 10 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/github-copilot-modernization/skills/verify-test-baseline/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/github-copilot-modernization/verify-test-baseline)