Coupling makes a test depend on implementation details or hidden data owned by another helper. Shared Account factories begin as convenient reuse, then let unrelated changes break many tests. section 11.4
Reduce coupling by making each test’s meaningful inputs explicit:
- Randomize attributes a test does not constrain, preventing assertions from depending on secret helper values. section 11.4.1
- Specialize only required attributes with overloads or Withers instead of accumulating combinations of hard-coded factory methods. section 11.4.1
- Treat randomized values as rigorous universal coverage: assertions must hold across values the test does not constrain. section 11.4.1
Explicit test intent
A test can start with randomized data and state only its business conditions: mkAcnt().withSegment(ENTERPRISE), or mkAcnt().withRegion(region).withSpend(threshold.plus(1)).





















