You need to sign in to do that
Don't have an account?
JimDeLong
How does post install script impact code coverage
I'm writing a post install script to populate custom objects. How does it impact code coverage? Do I just call the class.method() in the testMethod script?
The Package test is similar to the normal test, you have to create dummy records and call the methods in your Package which cover all the If & Else conditions to complete the code coverage.
See the below links for more information,
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_install_handler.htm
http://www.salesforce.com/us/developer/docs/packagingGuide/Content/apex_post_install_script.htm
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_unit_tests_running.htm
Regards,
Ashish