+ Start a Discussion
paul-lmipaul-lmi 

How to (properly) write test code for Hierarchy custom settings in a managed package

Basically, writing test code for this functionality simply sucks.  Because the "defaults" you set are not actually used until the setting is created for the first time, testing against them becomes an utter nightmare.

 

For those using protected hierarchy custom settings, what strategy are you using when pushing these in your managed appexchange packages?