sfdc-trigger-framework
Mock-Data-Layer-Pattern
sfdc-trigger-framework | Mock-Data-Layer-Pattern | |
---|---|---|
1 | 1 | |
903 | 9 | |
- | - | |
0.0 | 1.8 | |
about 1 month ago | over 2 years ago | |
Apex | Apex | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sfdc-trigger-framework
-
New to code - how to best call methods within a trigger
I would take a look at using a Trigger Framework. Here is an example of one: https://github.com/kevinohara80/sfdc-trigger-framework. There's also a trailhead on implementing frameworks: https://trailhead.salesforce.com/content/learn/modules/success-cloud-coding-conventions/implement-frameworks-sc
Mock-Data-Layer-Pattern
-
How to mock formulas and read-only fields in Apex tests?
A while ago we explored the Mock Data Layer Pattern, which allows us to mock virtually any relationships between records within your tests. This is especially handy when trying to improve the performance of these tests - more details here.
What are some alternatives?
NebulaLogger - The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
ApexTestKit - A way to simplify your Salesforce data creation and method stubbing.
lwc-utils - Reusable LWCs to 10x your solution building speed. Design interactive, data-dense UIs with LWC + Screen Flows.
apex-rollup - Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
sfdx-mass-action-scheduler - 🚀 Declaratively schedule Process Builder, Flows, Quick Actions, Email Alerts, Workflow Rules, or Apex to process records from Reports, List Views, SOQL, or Apex.
apex-fp - Functional programming for Salesforce Apex
apex-recipes - A library of concise, meaningful examples of Apex code for common use cases following best practices.
ApexDI - A dependency injection framework ported from .Net Core for Apex.