Skip to content
Home » Testing

Testing

Testing on the Salesforce platform. Mainly Apex Unit Testing and related topics like Mocking or Test Data creation.

Apex Architecture Async Apex Bear Profile Bear Trap Alert Enterprise Patterns GitHub LWC Namespace Packages Performance Testing Triggers Utils

DML (Mock) Service

TL; DR; Apex utility wrapping DML operations and logging their results consistently. And a mock version of the same allowing to do “pretend” DML in Unit Tests. Full source on GitHub (link). The Problem Not really a problem to be honest. It started with a desire to reduce duplication in… Read More »DML (Mock) Service

Man stretching

Flexible Mock

Writing good tests is hard. Complex repetitive setup code is often seen and tests run very slow. One way to improve is to gradually introduce mocking. The post tries to make this as easy as possible.

Apex Architecture Async Apex Bear Profile Bear Trap Alert Enterprise Patterns GitHub LWC Namespace Packages Performance Testing Triggers Utils