スキル一覧に戻る
rayvoidx

testing

by rayvoidx

0🍴 0📅 2026年1月4日
GitHubで見るManusで実行

SKILL.md


name: testing description: 테스트 작성 및 커버리지 관리 스킬. 단위 테스트, 통합 테스트, E2E 테스트 작업 시 자동으로 활성화됩니다. pytest, test, coverage, mock, fixture 키워드에 반응합니다. allowed-tools: Read, Edit, Write, Grep, Glob, Bash

Testing Skill

Python pytest 및 Cypress E2E 테스트 전문 스킬입니다.

핵심 역량

1. 단위 테스트 (Unit Tests)

  • pytest 기반 테스트 작성
  • Mock/Patch 활용
  • Fixture 관리

2. 통합 테스트 (Integration Tests)

  • API 엔드포인트 테스트
  • 데이터베이스 연동 테스트
  • 외부 서비스 테스트

3. E2E 테스트

  • Cypress 테스트 작성
  • 사용자 플로우 테스트

4. 커버리지 관리

  • 목표: 95% 커버리지
  • 누락 라인 식별
  • 커버리지 리포트 분석

프로젝트 구조

tests/
├── conftest.py          # 공통 fixtures
├── unit/
│   ├── agents/
│   ├── rag/
│   └── services/
├── integration/
│   ├── test_mission_api.py
│   └── test_rate_limit.py
└── e2e/
    └── test_creator_mission_flow.py

테스트 패턴

import pytest
from unittest.mock import AsyncMock, patch

@pytest.fixture
def mock_llm_client():
    client = AsyncMock()
    client.generate.return_value = "mocked response"
    return client

@pytest.mark.asyncio
async def test_rag_pipeline_success(mock_llm_client):
    """RAG 파이프라인 정상 동작 테스트"""
    with patch("src.rag.generation_engine.get_client", return_value=mock_llm_client):
        pipeline = RAGPipeline()
        result = await pipeline.process_query("test query")

        assert result["success"] is True
        assert "response" in result

def test_creator_schema_validation():
    """크리에이터 스키마 유효성 테스트"""
    with pytest.raises(ValidationError):
        CreatorRequest(name="", category="tech")

커맨드

# 전체 테스트 실행
pytest tests/ -v

# 커버리지 리포트
pytest --cov=src --cov-report=html tests/

# 특정 모듈 테스트
pytest tests/unit/rag/ -v

# 병렬 실행
pytest -n auto tests/

커버리지 목표

모듈현재목표
src/rag/85%95%
src/agents/80%95%
src/api/90%95%

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です