Product Testing Strategy¶
Status¶
Normative Quality Specification
Purpose¶
Defines how the Product Domain must be tested.
Core Principle¶
Tests MUST validate invariants first.
Invariants Reference¶
- INV-001 Identity uniqueness
- INV-002 Identifier is evidence
- INV-003 Observation immutability
- INV-004 Variant ownership
Test Layers¶
Unit Tests¶
- Value Objects
- Invariants
- Specifications
Domain Tests¶
- Aggregate behavior
- Conflict handling
- Identity resolution
Service Tests¶
- Domain Services logic
- Merge / Split logic
Rules¶
Tests MUST:
- be deterministic
- not require database
- not require WordPress
- not depend on feeds
- validate invariants explicitly
Decision¶
Testing strategy enforces domain correctness before infrastructure.