Загрузка...

Salesforce Apex Unit Testing: The Real Path from 0% to 75% Code Coverage with Evelyn Maguire

Salesforce Apex Unit Testing: The Real Path from 0% to 75% Code Coverage with Evelyn Maguire

Want to get better at Salesforce Apex unit testing without guessing your way through code coverage?

In this session, I’m joined by Evelyn Maguire to break down a practical path from 0% to 75% code coverage. They share how to structure Apex for LWC components, explain key testing concepts, and walk through how to use Apex Mockery in a real Salesforce org.

We cover:
• How Evelyn’s upcoming LWC cookbook is structured
• How to organize Apex for LWC using selector, service, and controller classes
• The difference between static vs non-static methods and variables
• Integration testing, unit testing, and end-to-end testing
• How to write an integration test for a controller class
• How to install and start using Apex Mockery
• The meaning of fake, mock, stub, and spy
• Checking and improving code coverage

Whether you’re new to Apex testing or looking for a cleaner way to structure and test your LWC-related Apex code, this session is packed with practical examples and live Q&A.

Resources
1. Apex Mockery GitHub: https://github.com/salesforce/apex-mockery
2. Code With Sally Beginner Series: https://www.youtube.com/playlist?list=PLeevJTFuNoITnI2Tol-iY4dYSh2JVPd3J
3. Evelyn’s Book: https://social.evelyn.fyi/preorder-packt?qr

Timestamps
00:00 Session opening
01:04 Welcoming Evelyn and session topic intro
02:29 Evelyn session opening
03:54 Overview of Evelyn’s upcoming LWC cookbook and the components covered
07:54 How the cookbook structures Apex for LWC components
09:34 Static vs non-static methods and variables
12:49 How the book chapters progress from beginner to advanced
14:11 Controller class explanation
15:05 Reviewing an LWC in the org and its code
16:37 Integration vs unit vs end-to-end testing
19:12 Q&A on testing types
20:52 Writing an integration test for the controller class
39:13 Apex Mockery GitHub walkthrough and installation overview
40:54 Fake vs Mock vs Stub vs Spy explained
46:44 Checking code coverage level
48:16 Implementing Apex Mockery together
1:23:33 Book QR code and Q&A
1:29:48 Session closing and thank you to Evelyn

#Salesforce #Apex #LWC #UnitTesting #CodeCoverage #ApexMockery #SalesforceDeveloper #CodeWithSally
========
Royalty Free Music: https://www.bensound.com
License code: OLCVE3GUGHSCALT6
Artist: : Benjamin Tissot

Music I Use: Bensound.com/free-music-for-videos
License code: 4B2QFOLNCOS6RVTU
Artist: : Benjamin Tissot

Видео Salesforce Apex Unit Testing: The Real Path from 0% to 75% Code Coverage with Evelyn Maguire канала Code With Sally
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять