fec-testing-strategy SKILL.md skillA
fec-testing-strategy from bovinphang/frontend-craft is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add bovinphang/frontend-craft/fec-testing-strategy@git:20260611.9d7f5e4Pins git:20260611.9d7f5e4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- bovinphang/frontend-craft
- Path
localized/zh-CN/skills/fec-testing-strategy/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260611.9d7f5e4, committed Jun 11, 2026
- Size
- 3,320 bytes
- Repository stars
- 22
- License
- MIT
用于规划或审查前端测试策略,按风险选择正确测试层级,将覆盖映射到静态检查、单元测试、组件测试、集成测试、E2E、Storybook/视觉回归、a11y、安全、性能或 CI gates。不要用于编写单个组件/E2E 测试或只是运行现有验证命令;中文触发词包括 测试策略、测试分层、测试计划、覆盖矩阵。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 前端测试策略 ## 用途 按“离代码多近 / 覆盖风险层级”选择测试方法,避免把所有风险都塞进组件测试或 E2E。 ## 流程 1. 识别改动类型:纯逻辑、UI 组件、跨模块流程、浏览器能力、视觉稳定性、专项质量风险或发布门禁。 2. 建立测试层级矩阵,至少区分: - 静态检查:TypeScript、ESLint、格式、依赖安全、构建。 - 单元测试:utils、hooks/composables、状态逻辑、schema、纯函数。 - 组件测试:props/emits、用户交互、loading/error/empty、mock 边界。 - 轻量集成测试:表单 + API mock + 路由/Store/Provider 上下文。 - E2E:真实浏览器、跨页面关键旅程、鉴权、支付、权限、CI artifacts。 - 视觉/交互文档:Storybook interaction、Chromatic、视觉回归基线。 - 专项质量:a11y、安全、性能、兼容性。 3. 按风险分配覆盖:高频核心路径优先 E2E,复杂组件状态优先组件测试,纯逻辑优先单元测试,跨 provider 协作用轻量集成测试。 4. 用测试金字塔控制维护成本: - 越靠近纯逻辑,测试越多、越快、越稳定。 - E2E 只覆盖用户关键旅程和真实浏览器风险,不覆盖每个分支。 - 视觉、a11y、安全和性能属于专项质量层,不塞进普通组件测试。 5. 检查是否已有命令、测试框架、目录约定和 CI 门禁;沿用项目现状,不为策略文档引入不必要工具。 6. 规划失败证据:每个高风险项要说明失败时如何定位,例如断言、截图、trace、coverage、日志或报告。 7. 设计测试数据与 mock 策略:共享 fixture 表达业务场景,测试数据 builder 只封装噪声字段,避免每个测试手写随机对象。 8. 管理 flaky 风险:把时间、网络、动画、随机数、并发和外部服务标为不稳定来源,并指定隔离、重试和证据产物。 9. 输出可执行的最小测试计划:每层覆盖什么、不覆盖什么、优先级、建议命令和责任 skill。 ## 约束 - 不把测试策略写成泛泛的“多写测试”;每个建议必须对应具体风险。 - 不要求所有项目都补齐完整测试金字塔;按业务风险和团队维护能力裁剪。 - 不把 E2E 当作单元/组件测试的替代品;不把组件测试当作真实浏览器兼容保证。 - 不为小改动强制引入新框架;优先复用仓库已有工具和脚本。 - 不追求没有风险说明的覆盖率数字;覆盖率只能辅助判断,不能替代场景覆盖。 - 不把随机 fixture、共享全局状态或依赖执行顺序的测试纳入主干门禁。 ## 预期输出 …
Read the whole file at its exact version.
How to install
mdr add bovinphang/frontend-craft/fec-testing-strategy@sha256:fcf41b9715ca7930The line at the top of this page pins the label git:20260611.9d7f5e4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_gxi65y3k23kujm5j)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jun 11, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3320 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
bovinphang/frontend-craft · 22 stars · license MIT · pushed 2026-09-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gxi65y3k23kujm5j GET https://markdownregistry.com/api/v1/resolve?ref=bovinphang/frontend-craft/fec-testing-strategy GET https://markdownregistry.com/api/v1/blob/fcf41b9715ca7930ac48ba0899489f0dfc6fd9ddb2183bfbc2d77154a96b4ee7
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from bovinphang/frontend-craft
Every file in bovinphang/frontend-craft