fec-testing-strategy

Plan and audit frontend testing strategies by risk with coverage mapping.

21|3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/bovinphang/frontend-craft --skill fec-testing-strategy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fec-testing-strategy
Source: https://github.com/bovinphang/frontend-craft/tree/main/localized/zh-CN/skills/fec-testing-strategy
Command: npx skills add https://github.com/bovinphang/frontend-craft --skill fec-testing-strategy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

按风险分层规划前端测试策略,帮助团队将静态检查、单元、组件、集成、E2E、视觉回归、a11y、安全、性能及 CI gates 的覆盖有序分配,提升测试效率与质量。

Core Features & Use Cases

  • 根据改动风险输出分层测试方案与覆盖矩阵,避免将所有变更都塞进单一测试层级。
  • 将策略映射到现有工具链中的静态检查、单元测试、组件测试、集成测试、E2E、Storybook/视觉回归、a11y、安全、性能与 CI gate。
  • 适用于跨团队的测试治理、审查和合规性需求的项目场景。

Quick Start

输入项目变更的风险等级并输出对应的测试层级矩阵与推荐命令。

Frequently Asked Questions about fec-testing-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I plan a frontend testing strategy based on risk levels?

A risk-based frontend testing strategy maps coverage across static checks, unit, component, integration, E2E, visual regression, a11y, security, performance, and CI gates. It allocates testing effort by change risk to prevent forcing all updates into a single testing layer.

What is a risk-based test pyramid for frontend applications?

A risk-based test pyramid distributes tests across multiple layers and tooling contexts rather than relying purely on test volume. It maps static checks, component tests, E2E, and CI gates to specific risk levels to optimize testing efficiency and quality.

How do I map frontend test coverage to CI gates and tooling?

Map frontend test coverage to CI gates by defining tiered test plans that reference relevant tests and configurations. This strategy aligns static checks, unit, integration, E2E, and performance tests with CI gate requirements to provide actionable execution guidance.

Can I audit existing frontend test coverage using a risk-based approach?

Yes, you can audit frontend testing strategies by risk to evaluate existing coverage across static checks, unit, component, integration, E2E, visual regression, a11y, security, and performance layers. This identifies gaps and ensures compliance for cross-team test governance.

Does risk-based frontend testing work for cross-team test governance?

Risk-based frontend testing suits cross-team test governance, review, and compliance requirements. It provides a structured coverage matrix and tiered test plans that standardize execution guidance across multiple team workflows and tooling contexts.