O'Reilly logo

Mastering Application Development with Force.com by Kevin J. Poorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

I've said it before, and I'll say it again—tests help you

At the risk of beating a dead horse, I want to again call out unit testing. Salesforce doesn't require unit tests because a Salesforce executive got a bee in his bonnet about platform stability. Tests exist to help you properly architect, engineer, document, and refactor your code. They help you architect your code to handle bulk data situations, complex object interactions, and integrations with third parties. By modeling real-life situations in tests, you know just how the code will actually work. Likewise, unit tests help you engineer your code line-by-line to meet security, data access, and governor requirements. If you find that you cannot easily test something, then you are likely ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required