function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?