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.

hoangsonww 0a68284 673 B Updated

File contents

Golden fixtures

Fixtures/ is the contract Tests/Integration asserts against.

./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.

swift test --parallel --filter DiffuseIntegrationTests

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

hoangsonww/diffuse-native-apps/tree/main/.agents/skills/fixtures commit 0a682849bc

Frequently asked questions

npx skillmds@latest add hoangsonww/fixtures