Back to skills
SKILL.md
Test Integration
ASecurity执行项目集成测试流程。 当需要运行集成测试或端到端验证时使用。
- 86 stars
- 0 votes
- 0 copies
- 0 views
- Added September 23, 2026
Works with
Security analysis
100/100npx -y skills add fitlab-ai/agent-infra --skill test-integration --agent claude-codeAre you the author of Test Integration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fitlab-ai-test-integration)---
name: test-integration
description: >
执行项目集成测试流程。
当需要运行集成测试或端到端验证时使用。
---
# 运行集成测试
执行项目的集成测试流程,进行端到端验证。
## 1. 验证构建产物
项目使用 TypeScript。`npm run test:integration` 会先运行 `npm run build`,再执行集成与端到端测试,因此无需单独重复构建。
## 2. 运行集成测试
```bash
npm run test:integration
```
该脚本先构建项目,再运行 `tests/integration/**/*.test.ts` 和 `tests/e2e/**/*.test.ts`,并启用 Node.js TypeScript strip-types 支持。
## 3. 输出结果
报告结果:
- 运行/通过/失败的测试数
- 环境问题(如有)
- 失败详情(如有)
## 失败处理
如果测试失败:
- 输出失败详情
- 检查环境问题(端口占用、服务未运行等)
- 不要自动修复 —— 等待用户决定
## 后续步骤
测试通过后,建议提交变更:
> 渲染下一步前先读取 `.agents/rules/next-step-output.md`,仅为已选场景调用统一 helper,并将 stdout 填入 `{next-step-commands}`。
使用 `agent-infra-internal agent-client next-steps --skill commit` 生成本场景的 `{next-step-commands}`。
```
下一步 - 提交代码:
{next-step-commands}
```
## 注意事项
1. **前置条件**:Node.js >= 22.9.0;脚本会自动构建
2. **环境**:集成测试可能需要外部服务(数据库、API 等)
3. **超时**:集成测试通常耗时较长;请耐心等待
4. **清理**:确保测试完成后清理测试环境
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.