You need to sign in to do that
Don't have an account?
Multiman
Are unit tests in a managed package executed after deploying it?
I am currently developing a module that I want to publish on AppExchange as a managed package. In a unit test I had (for the sake of test coverage) to create a number of standard objects. E.g.
public static testMethod void testHtmlTable2() { Account acc = new Account( name = 'Test Account', Industry = 'Education', Website = 'www.website.com', NumberOfEmployees = 20 ); try { insert acc; } catch (Exception e) {}
....
}
Now I'm concerned that a company that is trying to install my package on their org has validation rules in place for Account and the test would fail. Is that a valid concern or are tests of managed packages not executed if and admin hits the "Run All Tests" button in their org?
Thanks
Alex