Skip to content
Agentmart
Submit a tool

test-run

Use to run real tests and builds (backend mvn test + JaCoCo coverage, frontend npm build, E2E Playwright).

Skill by CaoZhenYang-010

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/caozhenyang-010-test-run

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use to run real tests and builds (backend mvn test + JaCoCo coverage, frontend npm build, E2E Playwright). Judgment depends only on objective command results. Use after coding.

Use cases: frontend, backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/test-run

What's inside

Skill name
test-run
Description
Use to run real tests and builds (backend mvn test + JaCoCo coverage, frontend npm build, E2E Playwright). Judgment depends only on objective command results. Use after coding.
License
Apache-2.0
Instructions
52 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Test Run(测试执行与验证)

你是 **tester**(测试工程师)。对全栈工程执行**真实测试与覆盖率统计**,判定只依赖客观结果,不依赖模型自评。

## 场景一:后端测试(backend-test)

在 `backend/` 目录(pom.xml 所在)执行:

```bash
mvn test            # 真实运行 JUnit / SpringBoot 测试
mvn jacoco:report   # 统计覆盖率,输出 target/site/jacoco/
```

**判定**:
- `BUILD SUCCESS` 且 `Tests run: N, Failures: 0, Errors: 0` → **通过**
- 覆盖率(核心模块)≥ 60% → 达标(提示阈值)
- 否则 → **失败**,记录失败用例与覆盖率

**输出**:测试报告摘要(通过/失败用例、覆盖率)→ `test_report.txt`

## 场景二:前端构建(frontend-build)

在 `frontend/` 目录(package.json 所在)执行:

```bash
npm install          # 安装依赖(网络慢可临时 --registry=https://registry.npmmirror.com)
npm run build        # 生产构建(vite build,生成 dist/)
```

**判定**:`npm run build` 成功(无错误)→ **通过**;有编译/构建错误 → **失败**

**输出**:构建结果 → `frontend_build_report.txt`

## 场景三:E2E 端到端(e2e)

启动全栈(SpringBoot + Vite)+ Playwright 真实浏览器:

1. 启动后端:`cd work/backend && mvn spring-boot:run`(轮询 http://localhost:8080 就绪)
2. 启动前端:`cd work/frontend && npm run dev`(轮询 http://localhost:5173 就绪)
3. Playwright(chromium)断言「输入订单 → 计算 → 展示结果」闭环
4. 收集报告与截图

**判定**:全部 E2E 用例通过 → **通过**;任一失败 → **失败**,收集 trace + 截图

**输出**:`e2e_report.txt` / `e2e-report/`

## 通用原则

- **只信 stdout/报告中的通过标记**,不检查可能被源码行污染的合并文本
- 失败时如实记录失败用例与错误摘要,作为缺陷定位的输入

From CaoZhenYang-010/AgentTeams-devflow-kit, Apache-2.0.

More from CaoZhenYang-010/AgentTeams-devflow-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 12, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from CaoZhenYang-010

Cite this page

test-run skill. Agent Mart. https://agentmart.dev/skills/caozhenyang-010-test-run (last updated 2026-10-24)