BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
588 / 1048 · Module 13 — MUnit← prev⊞ allnext →

13.2Testing pyramid for Mule

Think roughly:

                 Few
          ┌────────────────┐
          │ Full E2E tests │
          │ Mule → real SF │
          └────────────────┘

             Some
       ┌──────────────────────┐
       │ Integration/contract │
       │ tests                │
       └──────────────────────┘

              Many
    ┌────────────────────────────┐
    │ MUnit                      │
    │ mocked connectors          │
    │ flow logic                 │
    │ DataWeave                  │
    │ error handling             │
    └────────────────────────────┘

If all tests require:

real Salesforce
real Billing
real database
real queues

they become:

slow
fragile
environment-dependent
hard to diagnose