DashboardcliTesting and final validation conventions

Testing and final validation conventions

Category: preference
Confidence: 0.90
ID: 01a08c39-bcb3-7ea7-8ac0-c17405a08fd9
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 1XIG0Q84ck4K9HG1O
Created: 2026-08-21 12:40:37
Updated: 2026-09-10 16:49:49

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 14h ago

Content

Use model-based tests for stateful systems, property-based tests for parsing, validation, and transformations, and example tests for exact-format, integration, timing-specific, or trivial behavior. Property/model suites use DEFAULT_NUM_RUNS (50); database properties use createIsolatedDbContext() with cleanup in finally. Add deterministic targeted regressions for behavior changes and avoid duplicating invariants already covered by properties. If a contract intentionally changes, update stale mocks and assertions, rerun focused tests, then validate the exact final tree with required generation, typecheck, lint, policy/dependency checks, and the full unit suite. Inspect the final diff and separate unrelated warnings or infrastructure failures from regressions.

Move to: