Mock-Data-Layer-Pattern
ApexTestKit
Mock-Data-Layer-Pattern | ApexTestKit | |
---|---|---|
1 | 1 | |
9 | 145 | |
- | 0.0% | |
1.8 | 1.2 | |
over 2 years ago | about 1 year ago | |
Apex | Apex | |
- | Apache License 2.0 |
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.
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.
ApexTestKit
-
Apex Test Library with BDD Style
// Then System.assertEquals('Sth.', returnValue); ((ATKMockTest) ATK.then(mock).should().once()).doSomething(); ``` Both strict and lenient modes are implemented, also with three OOTB default answer algorithms and a hundred of argument matchers. Check it out on this wiki page for detail.
What are some alternatives?
apex-rollup - Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
apex-fp - Functional programming for Salesforce Apex
NebulaLogger - The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
apex-recipes - A library of concise, meaningful examples of Apex code for common use cases following best practices.
LightningFlowComponents - A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator.
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.
sfdc-trigger-framework - A minimal trigger framework for your Salesforce Apex Triggers
ApexDI - A dependency injection framework ported from .Net Core for Apex.