DashboardKnowledgeModel-property-unit test hierarchy

Model-property-unit test hierarchy

Category: preference
Confidence: 1.00
ID: 01a088cb-0252-7c58-8db1-eb64a6f599ec
Project ID: (global)
Cross-project: Yes
Recalled in other projects: 0
Source session: 18gCUlS8n9yTLhMpO
Created: 2026-09-09 23:19:18
Updated: 2026-09-10 00:50:00

Content

Prefer model-based tests for stateful systems, property-based tests for parsers, validation, round trips, symmetry, and idempotence, then unit tests for trivial or hard-to-model cases. Chose invariant-focused tests over example-only coverage because examples miss combinations and transitions. When property tests replace existing unit cases, remove redundant tests and add a unit-file header naming the invariants covered by the property-test file.

Move to: