BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
10 / 18 · Module 13 — MUnit · filtered: cheatsheet← prev⊞ allnext →

13.12Bad over-verification

Suppose flow currently is:

Set Variable
↓
Transform
↓
Logger
↓
Salesforce

Test verifies:

Set Variable called once
Transform called once
Logger called once
Salesforce called once

Then you refactor implementation without changing behavior.

Every test breaks.

That's not useful.

Prefer verifying meaningful boundaries:

Salesforce called
Billing not called
specific subflow selected
event published