
14. Unit Testing | David Reed
About this episode
Unit testing is an important programming skill but often times underestimated by programmers. David Reed shares what unit tests are and how to create good unit tests in Apex to guarantee production code quality. Main Points 75% code coverage in Salesforce Apex Unit testing definition Unit test v.s. Integration test Mocking in unit test 5 Unit test scenarios to create good unit tests: 1) positive 2) single record 3) bulkified records 4) negative 5) no action Unit tests as the documentation Lines of unit test should be more than production code How to create good unit tests in Salesforce Test
The post 14. Unit Testing | David Reed appeared first on SalesforceWay.
More from SalesforceWay
AI Skills Salesforce Developers Need The post 111. The AI Skills Salesforce Developers Need appeared first on SalesforceWay.
Christian Warden, founder of October Swimmer, joins us to talk about aer, the local Apex runtime for Salesforce developers. Christian is a Salesforce development professional and Linux enthusiast with…
Andrew Fawcett, who joins to talk about Apex v67 User Mode System Mode, is a Independent Salesforce Consultant, Former CPO on Heroku (Salesforce) and CTO on FinancialForce. Main Points Links Video The…
Jag Valaiyapathy, who joins to talk about Agentic coding and sf-skills, is a Senior Forward Deployed Engineer, Salesforce CTA. Main Points Links Video Teaser The YouTube Video URL Transcript AI-genera…
Xi Xiao, who joins to talk about the Interest and Passion, is a Salesforce Developer, Rust learner. Main Points Links Video Version Teaser (2min) Full episode Transcript AI-generated, unedited. Give p…