← スキル一覧に戻る

testing-guidelines
by amattas
Microsoft Fabric demo for retail customers with data generator
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: testing-guidelines description: How tests should be structured, named, and prioritized in this codebase.
Testing Guidelines
Test Types
-
Unit tests
- Fast, isolated, no network or DB.
- Test one behavior per test.
-
Integration tests
- Exercise real integrations (DB, queue, external service stubs).
- Focus on critical paths and failure modes.
-
End-to-end (E2E) tests
- Cover full user journeys.
- More expensive; keep the set small but meaningful.
Naming & Structure
- Test files:
- Mirror source structure:
src/foo/bar.py→tests/foo/test_bar.py
- Mirror source structure:
- Test names:
- Use descriptive names reflecting behavior, e.g.:
def test_rejects_requests_without_authentication():
- Use descriptive names reflecting behavior, e.g.:
Coverage Expectations
- Core domain logic: ≥ 80% line coverage
- Peripheral or legacy code: best-effort; prioritize stability
- Do not chase metrics blindly; focus on risk and impact.
Fixtures & Data
- Prefer factory functions over static fixtures.
- Make fixtures explicit and readable; avoid hidden magic.
Testing Conventions
- Arrange-Act-Assert structure where possible.
- Avoid brittle tests that depend on:
- Exact error messages
- Implementation details that can change safely
CI Requirements
- All tests must pass before merge.
- E2E tests may run on a separate pipeline if slow; document behavior.
スコア
総合スコア
50/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つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です