# Testing Coverage

> TDD and coverage standards for AriaCore. Trigger: When implementing behavior changes in any package.

- Skill: `itechdev-mx/testing-coverage` (Agent Skill)
- Install (CLI): `npx skillmds@latest add itechdev-mx/testing-coverage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/itechdev-mx/testing-coverage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: ITECHDEV-MX (https://skillmd.com/u/itechdev-mx)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/itechdev-mx/testing-coverage

---


## When to Use

Use this skill when:
- Adding new behavior
- Fixing a bug
- Refactoring logic with branch complexity

---

## TDD Loop

1. Write a failing test for the target behavior.
2. Implement the smallest code to pass.
3. Refactor while keeping tests green.
4. Add edge/error-path tests before closing.

---

## Coverage Rules

- Cover happy path + error paths + edge cases.
- Prefer deterministic tests over flaky integration paths.
- Add seams only when branches are impossible to trigger naturally.
- Keep runtime behavior unchanged when adding seams.

---

## Validation Commands

Run:

```bash
go test ./...
go test -cover ./...
```

Report package coverage and total coverage in the PR.

