一键导入
test-automation
Create and execute automated test suites with comprehensive coverage for unit, integration, and E2E testing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create and execute automated test suites with comprehensive coverage for unit, integration, and E2E testing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Design RESTful APIs with proper resource modeling, error handling, pagination, and documentation
Design system architecture, data models, API contracts, and create Architecture Decision Records (ADRs)
Implement backend functionality including APIs, business logic, database operations, and integrations
Comprehensive code review checking for security, performance, maintainability, and best practices
Prepare deployment configuration, environment setup, health checks, and rollback procedures
Implement frontend user interfaces with modern frameworks, responsive design, and accessibility standards
| name | test-automation |
| description | Create and execute automated test suites with comprehensive coverage for unit, integration, and E2E testing |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Create comprehensive automated tests ensuring code quality and reliability.
describe('Feature', () => {
it('should do expected behavior', () => {
// Arrange - Set up test data
const input = { ... };
// Act - Execute the code
const result = functionUnderTest(input);
// Assert - Verify outcome
expect(result).toEqual(expected);
});
});
| Type | Minimum | Target |
|---|---|---|
| Statements | 70% | 85% |
| Branches | 65% | 80% |
| Functions | 75% | 90% |
| Lines | 70% | 85% |
# Run all tests
npm test
# Run with coverage
npm test -- --coverage
# Run specific test file
npm test -- path/to/test.spec.js
# Run in watch mode
npm test -- --watch
# Generate coverage report
npm test -- --coverage --coverageReporters=html
# Test Results
**Total**: X tests
**Passed**: Y
**Failed**: Z
**Coverage**: X%
## Failed Tests
1. [Test name] - [Reason]
## Coverage Gaps
- [File]: [Lines not covered]
## Recommendations
- [Suggested additional tests]