You need to sign in to do that
Don't have an account?
![kzmp kzmp](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to write unit tests for a package and account for customizations of users environments
Hi,
I have a managed package which includes triggers and other bits of code which work with sObjects.
In my unit tests for the package I do inserts in say the Accounts sObject. But when a user who has customized the the Accounts sObject with validation rules tries to install my package he/she gets an error because the values my tests insert do not pass his/her validation rules.
Could you please advise of the best practices in this kind of situation.
Thanks,
Kzmp