Skip to main content

envtest-integration

Setup, run, and debug Kubernetes integration tests using envtest. Use when working with test/integration or Kubernetes client behavior.

소스 정보

저장소
fosrl/pangolin-kube-controller
최근 소스 활동
2026년 3월 26일 21:11
감지된 SKILL.md 언어
영어
스타
13
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
envtest-integration
description
Setup, run, and debug Kubernetes integration tests using envtest. Use when working with test/integration or Kubernetes client behavior.
# Envtest Integration Skill ## When to use - Changes in `test/integration/` - Changes in Kubernetes client logic (`internal/kube/`) - CRD-related changes - Controller behavior affecting API interaction --- ## Setup Ensure envtest is installed: ```bash setup-envtest use -p env 1.29.x ``` --- ## Run tests ```bash task test:integration ``` or: ```bash go test -tags=integration ./test/integration ``` --- ## Debugging checklist * CRDs correctly loaded? * API server started? * Scheme registration correct? * Resources created before assertions? * Context timeouts correct? --- ## Common issues * Missing CRDs → ensure testdata paths correct * Race conditions → check goroutines and async logic * Timeouts → increase test context duration --- ## Validation ```bash task test task test:integration ``` --- ## Output format * What failed * Root cause * Fix suggestion * Commands executed
GitHub에서 보기