ApexTestKit
Mock-Data-Layer-Pattern
ApexTestKit | Mock-Data-Layer-Pattern | |
---|---|---|
1 | 1 | |
145 | 9 | |
0.0% | - | |
1.2 | 1.8 | |
about 1 year ago | over 2 years 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.
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.
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?
apex-fp - Functional programming for Salesforce Apex
apex-rollup - Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
apex-recipes - A library of concise, meaningful examples of Apex code for common use cases following best practices.
NebulaLogger - The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
LightningFlowComponents - A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator.
sfdc-trigger-framework - A minimal trigger framework for your Salesforce Apex Triggers
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.
ApexDI - A dependency injection framework ported from .Net Core for Apex.