ARAleš Remtainpragmaticbear.hashnode.dev·May 26, 2022 · 9 min readSFDX GitHub Code Review – Part 2TL; DR; Finding the right “position” in the diff view for a GitHub Review Comment from a line number in static analysis report. Current version of the GitHub Action is published. Help me test and improve it. The Scene You can read how this all star...00
ARAleš Remtainpragmaticbear.hashnode.dev·May 26, 2022 · 6 min readSFDX GitHub Code Review – Part 1TL; DR; Building a GitHub Action to do code review on a Pull Request using Salesforce Code Analyzer CLI plugin. (previously known as Code Scanner). Check out the current version on GitHub or jump down a few paragraphs to skip the intro waffling. I ...00
ARAleš Remtainpragmaticbear.hashnode.dev·Apr 9, 2022 · 4 min readDML (Mock) ServiceTL; 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. The Problem Not really a problem to be honest. It started with a ...00
ARAleš Remtainpragmaticbear.hashnode.dev·Apr 9, 2022 · 4 min readClass FactoryTL; DR; Standardising mocking throughout your code base in the simplest way possible without mixing test-only and production code. See on GitHub The Problem Mocking in (Apex) unit tests is very useful. There are, however, a few challenges to it. Ho...00
ARAleš Remtainpragmaticbear.hashnode.dev·Apr 8, 2022 · 6 min readFlexible MockTL; DR; Simplifying Apex Mocking with a flexible Stub class which can replace any “mockable” method call and argument combination. See on GitHub The Problem Unit tests are hard. At least good unit tests are. So often you see repeating complicated s...00