ApexTestKit
sfdc-trigger-framework
ApexTestKit | sfdc-trigger-framework | |
---|---|---|
1 | 1 | |
145 | 901 | |
0.0% | - | |
1.2 | 0.0 | |
about 1 year ago | about 1 month ago | |
Apex | Apex | |
Apache License 2.0 | 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.
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.
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
What are some alternatives?
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.
Mock-Data-Layer-Pattern - Mock Data Layer Pattern - Learn how to use dependency injection to create a Data Layer that will allow you to improve your Apex tests performance with mock data relationships.
lwc-utils - Reusable LWCs to 10x your solution building speed. Design interactive, data-dense UIs with LWC + Screen Flows.
apex-recipes - A library of concise, meaningful examples of Apex code for common use cases following best practices.
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.
LightningFlowComponents - A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator.
apex-rollup - Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.