测试与安全

test-migration

petrkindlmann/qa-skills

Migrate a test suite from one framework to another, incrementally and without losing coverage. Covers Selenium→Playwright, Cypress→Playwright, Jest→Vitest, Mocha→Vitest, and Protractor→Playwright, with parallel CI running, locator/assertion translation, and a coverage-parity track. Use when: "migrate tests," "switch framework," "Selenium to Playwright," "Jest to Vitest," "framework migration." Not for: bulk selector regeneration after a UI refactor on the SAME framework — use selector-drift-recovery. Not for: healing one flaky test at runtime — use test-reliability. Not for: modernizing patterns without changing framework — use ai-qa-review. Related: playwright-automation, cypress-automation, unit-testing, ci-cd-integration, test-reliability.

  • 1069 次安装
  • 226 星标
  • 收录于

安装命令

npx skills add https://github.com/petrkindlmann/qa-skills --skill test-migration

SKILL.md


Quick Route

You're going from → to Jump to First-pass tooling
Selenium → Playwright Translation Patterns + references/framework-guides.md hand-write; no codemod worth trusting
Cypress → Playwright Translation Patterns + references/framework-guides.md cy2pw web converter / community CLI (see tooling table); hand-write from the golden reference when no new dependency or interactive tool is allowed, and for fewer than about twenty tests, where it is faster anyway
Protractor → Playwright references/framework-guides.md (urgent — EOL 2023) hand-write; map by.model/by.binding
Jest → Vitest references/framework-guides.md jest.→vi. sed pass, then verify
Mocha → Vitest references/framework-guides.md chai-matcher codemod, then verify
Any path, 100+ tests Migration Workflow + Parallel Running Strategy always parallel-run in CI


Quick Route

You're going from → to Jump to First-pass tooling
Selenium → Playwright Translation Patterns + references/framework-guides.md hand-write; no codemod worth trusting
Cypress → Playwright Translation Patterns + references/framework-guides.md cy2pw web converter / community CLI (see tooling table); hand-write from the golden reference when no new dependency or interactive tool is allowed, and for fewer than about twenty tests, where it is faster anyway
Protractor → Playwright references/framework-guides.md (urgent — EOL 2023) hand-write; map by.model/by.binding
Jest → Vitest references/framework-guides.md jest.→vi. sed pass, then verify
Mocha → Vitest references/framework-guides.md chai-matcher codemod, then verify
Any path, 100+ tests Migration Workflow + Parallel Running Strategy always parallel-run in CI