test-automation

仓库创建 2026年1月5日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

自动化执行单元与 E2E 测试并汇总结果,适合 CI/本地诊断

▸ 风险提示

包含 npx 安装与执行,可能在运行时拉取外部包

这个 Skill 做什么

运行 Vitest 与 Playwright 测试并收集结果与失败分析

把项目里的单元测试(Vitest)和端到端测试(Playwright)跑一遍,汇总各套件的通过/失败数,并抽取失败信息和堆栈做初步分析。CI 或本地排查回归时用,一键生成 JSON 报表方便定位问题。特点是同时跑 unit 和 E2E 并统一解析失败,省去手动翻日志。

自动化集成自动化测试VitestPlaywright测试报告通用
1.6k
Stars
94
Forks
40
仓库内 Skill
+111
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/automaker/skills/test-automation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/automaker/skills/test-automation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Test Automation

Execute Vitest and Playwright test suites with result collection and failure analysis.

## Agent
Test Runner - `automaker-test-runner`

## Workflow
1. Navigate to worktree path
2. Run Vitest unit tests (npx vitest run --reporter=json)
3. Run Playwright E2E tests (npx playwright test --reporter=json)
4. Collect pass/fail counts per suite
5. Extract failure messages and stack traces
6. Measure code coverage
7. Identify flaky tests
8. Analyze failure root causes for convergence

## Inputs
- `projectName` - Project name
- `featureId` - Feature identifier
- `worktreePath` - Path to isolated worktree
- `testFramework` - Framework: 'vitest', 'playwright', 'both'
- `changedFiles` 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有