본문으로 건너뛰기
cccskills
무료GitHub에 공개

dygo-test-strategy

Select, write, or review proportionate tests and verification for dygo Go packages, PostgreSQL behavior, metadata, CLI contracts, Studio, integrations, and releases. Use when test scope or confidence strategy is the main decision.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구PostgreSQL
설치 방법 보기

포함된 파일(1)

  • SKILL.md3.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

dygo Test Strategy

Test the meaningful invariant at the lowest useful boundary.

Choose The Boundary

  • Use a focused Go package test for pure logic and package contracts.
  • Use PostgreSQL-backed tests for transactions, schema state, constraints, concurrency, and Record behavior.
  • Use CLI tests for arguments, streams, plans, prompts, redaction, and exit behavior.
  • Use metadata fixtures for parsing, validation, identity, and deterministic diagnostics.
  • Use Studio unit tests for stores, queries, renderers, and component behavior.
  • Use browser checks for interaction, navigation, accessibility, and layout acceptance.
  • Use release smoke tests for archives, installers, bundled assets, and reported versions.

Rules

  • Test business or framework behavior, not exact implementation wording.
  • Inspect existing coverage before adding tests. Add a case for a meaningful behavior or failure mode that is not adequately covered, not merely for a new function or file.
  • Extend an existing case when it covers the same contract clearly. Test at multiple layers only when each protects a distinct failure mode.
  • Prefer observable results over source patterns or incidental markup. Keep source and file assertions when generated output, ownership markers, wire formats, or bundled assets are the contract.
  • Before removing a test, map its unique assertions and input cases to retained coverage, a stronger replacement, or a confirmed obsolete contract. Resolve fixture helpers before calling cases duplicates.
  • Consolidate repeated setup with named cases when this stays clear. Preserve distinct failure modes and useful diagnostics; fewer lines do not necessarily mean fewer executions.
  • Make assertions prove the named behavior: presence does not prove order, a preset mock decision does not prove authorization, and any error does not prove the intended rejection. Redaction checks must introduce sensitive input.
  • Add a regression test when a defect can recur and the boundary is stable.
  • Do not add tests that mirror a reversible, low-impact edit when existing validation proves the result.
  • Do not chase an arbitrary coverage percentage.
  • Keep database tests deterministic and isolate their state. SQL-construction tests do not replace PostgreSQL behavior checks; report skipped integration tests and their execution requirements.
  • Include failure and rollback cases for high-risk writes.
  • Include authorization cases for data-bearing APIs.
  • Use race or concurrency checks when ownership, workers, claims, or goroutines changed.
  • Run the narrowest relevant checks during development. Run broader checks before a major commit or release.
  • After relevant and required checks pass, repeat or broaden them only for new changes, failures, or unresolved concerns.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Design, implement, or review dygo roles, Entity access metadata, Permissions, and permission-aware Business App behavior. Use when access to Records or business actions is central to the task.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

Design, implement, or review dygo HTTP APIs and public App SDK contracts. Use for Record APIs, metadata and boot endpoints, query behavior, response envelopes, compatibility, and public Go interfaces.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

Diagnose a dygo Business App that does not validate, boot, route, render, authorize, migrate, or execute background work correctly. Use for evidence-first investigation rather than feature implementation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

Build or extend a dygo Business App using the supported project layout, generators, metadata, SDK, and validation workflow. Use for general app work that is not primarily Entity modeling, access, hooks, Jobs, fixtures, or patches.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

Review a dygo Business App for framework conventions, model quality, access control, SDK boundaries, observability, and safe lifecycle behavior. Use for App audits and pre-merge reviews, not ordinary implementation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

Design, implement, or review the dygo framework CLI in Go with Cobra. Use for commands, flags, help, prompts, plans, output contracts, completion, and project-aware CLI behavior. Do not use for operating a deployed business through the reserved dygo-cli operator skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hapyco/dygo162026년 10월 18일 업데이트

hapyco의 스킬 모두 보기

이 스킬의 문제 신고