Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

testing-workflow测试工作流程

Agent Skill

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

总安装

42,816

周安装

1,749

GitHub Stars

1

下载量

13,852
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:testing-workflow(测试工作流程)
来源仓库:https://github.com/wpank/testing-workflow
安装命令:
openclaw skills install testing-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install testing-workflow

简介

通过协调测试模式、e2e 测试和测试代理来协调整个项目的综合测试的元技能。在为新项目设置测试、提高现有项目的覆盖范围、建立测试策略或在发布前验证质量时使用。

SKILL.md

name
testing-workflow
model
standard
category
testing
description
Meta-skill that orchestrates comprehensive testing across a project by coordinating testing-patterns, e2e-testing, and testing agents. Use when setting up testing for a new project, improving coverage for an existing project, establishing a testing strategy, or verifying quality before a release.
version
1.0

Testing Workflow

Orchestrate comprehensive testing across a project by coordinating the testing-patterns skill, e2e-testing skill, and testing agents. This meta-skill does not define test patterns itself — it routes to the right skill or agent at each stage and ensures nothing is missed.


When to Use

  • Setting up testing for a new project from scratch
  • Improving coverage for an existing project with gaps
  • Establishing or revising a testing strategy
  • Before a major release to verify quality gates are met
  • After a large refactor to confirm nothing broke
  • During code review when test adequacy is in question
  • Onboarding a team to a testing workflow

Orchestration Flow

Follow these steps in order. Each step routes to a specific skill or agent — read and apply that resource before moving to the next step.

Phase 1: Discovery and Baseline

Scan the project to understand existing test infrastructure, measure current coverage, and identify gaps before making changes. Without a baseline, you cannot demonstrate improvement.

  1. Identify test infrastructure — Determine the test runner, assertion library, coverage tool, and CI configuration already in use. If none exist, flag that setup is needed.
  2. Measure current coverage — Run the existing test suite and record statement, branch, and function coverage. This is the baseline.
  3. Map untested code — Identify modules, functions, and code paths with no test coverage. Prioritize by risk: business-critical logic first, utilities last.
  4. Catalog existing tests — Categorize existing tests as unit, integration, or E2E. Check for skipped tests, flaky tests, and tests that don't assert anything meaningful.

Phase 2: Strategy Selection

Based on the discovery results, select the appropriate testing approach for this project.

  1. Determine project type — Use the Coverage Targets table below to set appropriate thresholds for the project type.
  2. Select test patterns — Read ai/skills/testing/testing-patterns/SKILL.md and choose the unit/integration test patterns that match the project's architecture, language, and framework.
  3. Identify critical user journeys — List the 3-10 most important user workflows that require E2E coverage. These are flows where a failure would directly impact revenue, user trust, or safety.
  4. Document the strategy — Fill in the Testing Strategy Template (below) and commit it to the repository.

Phase 3: Implementation

Generate tests following the patterns selected in Phase 2.

  1. Unit tests first — Write unit tests for uncovered business logic, starting with the highest-risk modules. Follow the testing pyramid: ~70% of your tests should be unit tests.
  2. Integration tests next — Write integration tests for module boundaries, API endpoints, and database queries. Focus on the seams where components interact.
  3. E2E tests for critical journeys — Read ai/skills/testing/e2e-testing/SKILL.md and write E2E tests for each critical user journey identified in Phase 2.
  4. Edge case coverage — After the happy paths are covered, add tests for error conditions, boundary values, null/empty inputs, and concurrency scenarios.

Phase 4: Validation

Verify that the new tests meet quality standards and coverage targets.

  1. Run the full test suite — Every test must pass. Fix failures before proceeding.
  2. Measure coverage against targets — Compare new coverage against the thresholds for the project type. If targets are not met, return to Phase 3.
  3. Check test quality — Review tests for the anti-patterns listed in testing-patterns (assert-free tests, overmocking, flaky tests, test pollution). Fix any found.
  4. Verify CI integration — Confirm that tests run automatically on every push/PR and that coverage thresholds are enforced in CI.

Phase 5: Maintenance

Establish ongoing practices to keep the test suite healthy.

  1. Set up coverage ratcheting — Configure CI to fail if coverage drops below the current level. Coverage should only go up.
  2. Establish flaky test policy — Any test that fails intermittently must be fixed within one sprint or removed with a justification.
  3. Define test review standards — Every PR that adds or changes logic must include corresponding test changes. Reviewers check for this.
  4. Schedule test health audits — Quarterly, review test execution time, flaky test rate, skipped test count, and coverage trends.

Skill Routing Table

Use this table to route specific needs to the correct resource:

NeedRoute ToPath
Unit/integration test patternstesting-patternsai/skills/testing/testing-patterns/SKILL.md
E2E test patternse2e-testingai/skills/testing/e2e-testing/SKILL.md
Code quality standardsclean-codeai/skills/testing/clean-code/SKILL.md
Review checklistcode-reviewai/skills/testing/code-review/SKILL.md
CI/CD quality gatesquality-gatesai/skills/testing/quality-gates/SKILL.md
Debugging test failuresdebuggingai/skills/testing/debugging/SKILL.md

When a request falls clearly into one row, go directly to that resource. Use the full orchestration flow only when comprehensive coverage is the goal.


Coverage Targets

Targets vary by project type. Use the appropriate row to set expectations:

Project TypeStatementBranchFunctionE2E JourneysNotes
Startup MVP60%50%60%Top 3 flowsFocus on critical paths only
Production App80%70%80%Top 10 flowsBalance speed with confidence
Library / Package90%85%95%N/APublic API must be fully covered
Critical Infrastructure95%90%95%All flowsZero tolerance for gaps

These are minimums. Aim higher when time permits, but do not block releases on vanity metrics — prioritize meaningful coverage over percentage points.


Testing Strategy Template

Use this template to document the testing strategy for a project. Fill it in during the orchestration flow and keep it in the repo.

# Testing Strategy

## Project Overview
- **Project**: [name]
- **Type**: [startup MVP | production app | library | critical infrastructure]
- **Primary Language**: [language]
- **Framework**: [framework]
- **Test Runner**: [runner]
- **Coverage Tool**: [tool]

## Coverage Baseline
- **Statement**: [X%]
- **Branch**: [X%]
- **Function**: [X%]
- **E2E Journeys Covered**: [N of M]
- **Date Measured**: [YYYY-MM-DD]

## Coverage Targets
- **Statement**: [target%]
- **Branch**: [target%]
- **Function**: [target%]
- **E2E Journeys**: [target count]

## Test Patterns Selected
- [ ] [Pattern 1 — reason for selection]
- [ ] [Pattern 2 — reason for selection]
- [ ] [Pattern 3 — reason for selection]

## Critical User Journeys (E2E)
1. [Journey 1 — e.g., signup -> onboarding -> first action]
2. [Journey 2 — e.g., login -> dashboard -> export]
3. [Journey 3 — e.g., checkout -> payment -> confirmation]

## Gaps and Risks
- [Untested area 1 — risk level, mitigation plan]
- [Untested area 2 — risk level, mitigation plan]

## Quality Gate Status
- [ ] All tests pass
- [ ] Coverage targets met
- [ ] Critical journeys covered with E2E
- [ ] No skipped tests without justification
- [ ] Test execution time within budget
- [ ] CI enforces coverage thresholds

Quality Gates for Testing Completion

All of the following must be satisfied before marking testing complete:

GateRequirementWhy
All tests passZero failures, zero errorsFlaky tests count as failures
Coverage targets metStatement, branch, and function coverage meet project-type thresholdsUntested code is unverified code
Critical journeys coveredEvery critical user journey has a passing E2E testRevenue and trust depend on these flows
No unjustified skipsEvery skip, xit, or xdescribe has a comment and linked issueSkipped tests rot into permanent gaps
Execution time budgetUnit < 60s, E2E < 10minSlow suites get skipped by developers
No test pollutionRunning any test file alone produces same results as full suiteShared state masks failures
Mocks are justifiedEvery mock has a comment explaining why the real impl cannot be usedOver-mocking hides real bugs

NEVER Do

  1. NEVER write tests that test implementation details instead of behavior — tests must verify what the code does, not how it does it
  2. NEVER skip the discovery phase — always measure the baseline before writing new tests, or you cannot demonstrate improvement
  3. NEVER merge tests that depend on execution order — each test must be independent and idempotent
  4. NEVER mock what you do not own — wrap third-party dependencies in your own adapters and mock the adapters instead
  5. NEVER treat coverage percentage as the sole quality metric — 100% coverage with weak assertions is worse than 70% coverage with strong assertions
  6. NEVER leave the test suite in a failing state — if a test fails, fix it or remove it with a justification before moving on
  7. NEVER skip E2E tests for critical user journeys — unit tests alone cannot catch integration failures in flows that matter most
  8. NEVER deploy without running the full test suite — partial test runs create false confidence

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

72.87%
按下载量换算10,094

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills