Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

testing-strategy测试策略

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

618

周安装

25

GitHub Stars

6

下载量

194
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-strategy(测试策略)
来源仓库:https://github.com/srstomp/pokayokay
仓库路径:skills/testing-strategy
安装命令:
npx skills add https://github.com/srstomp/pokayokay --skill testing-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/srstomp/pokayokay --skill testing-strategy

简介

testing-strategy 用于辅助测试设计、自动化测试和回归验证。

  • 它适合编写单元测试、端到端测试和定位失败日志问题。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 使用时需确认项目测试框架和运行命令,避免为通过而改坏逻辑。
  • 涉及浏览器或外部服务时应区分本地模拟与生产环境。

SKILL.md

Testing Strategy

Comprehensive testing guidance for test architecture, coverage strategy, and test design.

Test Pyramid

LevelSpeedCostConfidenceShare
Unit~1msLowNarrow65-80%
Integration~100msMediumMedium15-25%
Contract~10msLowAPI shapePart of unit
E2E~1s+HighBroad5-10%

Key Principles

  • Test behavior, not implementation — test what code does, not how
  • For behavior changes, write the failing test first and verify it fails for the expected reason
  • Follow the testing pyramid — more unit tests, fewer E2E
  • Use meaningful coverage metrics — branch coverage over line coverage
  • Prevent flaky tests — no arbitrary waits, no test interdependence

Quick Start Checklist

  1. Choose test framework (Vitest recommended for new projects)
  2. Design test folder structure mirroring source
  3. Write unit tests for pure logic and utilities
  4. Add integration tests for API endpoints and data flows
  5. Add contract tests against OpenAPI spec (if applicable)
  6. Add E2E tests for critical user journeys only
  7. Set up CI to run tests on every PR
  8. Before completion claims, run verification-before-completion and cite the fresh command result

What NOT to Test

  • Framework internals (React rendering, Express routing)
  • Third-party library behavior
  • Trivial getters/setters with no logic
  • Implementation details (private methods, internal state)

References

ReferenceDescription
test-architecture-structure.mdProject structures, shared utilities, test configuration
test-architecture-isolation.mdPlaywright config, database isolation, performance optimization
test-design-techniques.mdEquivalence partitioning, boundary values, decision tables, state transitions
test-design-error-and-advanced.mdError handling tests, property-based testing, parameterization, regression
frontend-react-testing.mdReact Testing Library, queries, user events, hooks, forms
frontend-vue-a11y-visual.mdVue Test Utils, accessibility, visual/Storybook testing, anti-patterns
e2e-playwright.mdPlaywright POM, fixtures, auth state, API mocking, visual comparison
e2e-cypress-and-stability.mdCypress patterns, flaky test prevention, test data, debugging
mocking-fundamentals.mdMock decision tree, stubs/mocks/spies/fakes, MSW setup and usage
mocking-modules-and-patterns.mdModule mocking, time mocking, anti-patterns, dependency injection
coverage-guide.mdCoverage metrics, meaningful thresholds, CI integration
api-test-frameworks-setup.mdVitest and Jest setup, configuration, running tests
api-test-supertest-and-helpers.mdSupertest usage, request helpers, custom matchers, snapshots, debugging
api-integration-patterns.mdCRUD endpoint tests, relationship tests
api-auth-patterns.mdLogin/logout, protected routes, authorization, auth helpers
api-e2e-and-edge-cases.mdMulti-step workflow tests, error responses, edge cases
api-test-data-factories.mdFactory patterns, builders, fixtures
api-test-data-database.mdDatabase helpers, cleanup strategies, data generation
api-contract-openapi.mdOpenAPI/AJV schema validation, contract tests
api-contract-zod-advanced.mdZod validation, response shape testing, breaking change detection
api-test-ci-pipelines.mdCI pipeline strategy, GitHub Actions, parallel execution
api-test-ci-environments.mdEnvironment config, test reporting, database services, E2E environments
anti-rationalization.mdIron Law, common rationalizations, red flag STOP list for TDD discipline

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.6%
按下载量换算59

OpenCode

25.03%
按下载量换算49

Codex

17.04%
按下载量换算33

Antigravity

13.84%
按下载量换算27

Gemini CLI

7.97%
按下载量换算15

windsurf

3.37%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills