← スキル一覧に戻る

test-auto
by htlin222
test-autoは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 66🍴 4📅 2026年1月23日
SKILL.md
name: test-auto description: Create test suites with unit, integration, and e2e tests. Use when setting up tests, improving coverage, or when user asks about testing.
Test Automation
Create comprehensive test suites following the testing pyramid.
When to Use
- Setting up tests for new code
- User asks to "add tests" or "improve coverage"
- Before refactoring (add tests first)
- Implementing CI/CD test pipelines
Testing Pyramid
/\ E2E (few, critical paths)
/ \ Integration (moderate)
/____\ Unit (many, fast)
Test Structure
Unit Tests
- Test individual functions/methods
- Mock external dependencies
- Fast execution (<100ms per test)
- High coverage (>80%)
Integration Tests
- Test component interactions
- Use test databases/containers
- Moderate execution time
- Cover critical integrations
E2E Tests
- Test complete user flows
- Use Playwright/Cypress
- Slowest execution
- Cover happy paths only
Test Patterns
// Arrange-Act-Assert
describe("UserService", () => {
it("should create user with valid data", async () => {
// Arrange
const userData = { name: "Test", email: "test@example.com" };
// Act
const result = await userService.create(userData);
// Assert
expect(result.id).toBeDefined();
expect(result.name).toBe("Test");
});
});
Output
- Test files with clear naming
- Mock/stub implementations
- Test data factories
- Coverage configuration
- CI pipeline integration
Examples
Input: "Add tests for the auth module" Action: Analyze auth module, create unit tests for functions, integration tests for flows
Input: "Set up testing for this project" Action: Detect framework, configure test runner, create example tests, add CI config
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です


