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

13.40The big testing trap

Imagine this MUnit test:

mock Salesforce
→ success

All tests green.

Production:

INVALID_FIELD:
Customer_Status__c doesn't exist

Why?

Because you mocked the thing that validates schema.

That's why you need both:

fast MUnit tests
+
targeted real Salesforce integration tests