testing-workflow

仓库创建 2024年12月9日最近提交 6 小时前SkillHot 收录 5 小时前
▸ 精选理由

适合在提交前自检、避免 CI 缺位导致的回归。

这个 Skill 做什么

规定 ChatbotX 项目本地测试/ lint/类型/覆盖率 的验证流程。

把本地的校验门禁说明清楚:按 lint → types → test → coverage 的顺序跑,通过后改动才算完成。添加或修改测试、或在宣称任务已验证前一定要用,项目 CI 并不替你跑这些流程(Vitest 与覆盖阈值需本地达标)。重点是有固定顺序和阈值,别指望 CI 自动验收。

▸ 展开 SKILL.md 英文原文

Use when adding or changing tests, or before considering a change done, in ChatbotX. Documents the real verification gate sequence (lint → types → test → coverage), where tests live, the Vitest setup, and the coverage threshold that must not be silently bypassed. Read before writing tests or claiming a task is verified.

开发编程测试流程本地验证覆盖率通用
524
Stars
116
Forks
21
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/testing-workflow/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/testing-workflow/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Testing Workflow (ChatbotX)

The verification gate every change passes before it is "done". CI currently does **not** run these (it builds Docker images only), so they are enforced locally — run them yourself, do not assume CI catches regressions.

## The gate sequence (run in order, fix before advancing)

1. **Lint** — `pnpm lint` (Ultracite/Biome). Use `pnpm fix` to auto-fix, never hand-format.
2. **Types** — `pnpm --filter <app|package> check-types` for every workspace you touched.
3. **Test** — run the affected package's Vitest suite.
4. **Coverage** — keep the 80% threshold (`packages/vitest-config/src/node.ts`). Do **not** set `VITEST_SKIP_COVERAGE_THRESHOLDS` to dodge it — that sile
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有