# Fixtures

> Regenerate golden snapshot and expected-diff fixtures after a collector schema or fixture-generator change. Use when integration tests fail on Fixtures/ or after changing snapshot encoding.

- Skill: `hoangsonww/fixtures` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hoangsonww/fixtures`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hoangsonww/fixtures/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: hoangsonww (https://skillmd.com/u/hoangsonww)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hoangsonww/fixtures

---


# Golden fixtures

`Fixtures/` is the contract `Tests/Integration` asserts against.

```bash
./Scripts/generate-fixtures.sh
```

Then **read the resulting diff**. Do not commit a fixture change you cannot explain. Do not weaken an expected diff to make a test pass.

```bash
swift test --parallel --filter DiffuseIntegrationTests
```

`FixtureGenerator` and `SampleData` must stay deterministic: no `Date()`, no `UUID()`, no environment lookups.

