You need to sign in to do that
Don't have an account?
Swkannan
Error while installing package
Hello
We created an unmanaged package in the Dev Org and tried installing the Package in our Test Org but I get this error and installation fails.
Apex Classes(01pU0000000HqgO) | System.Exception: Assertion Failed: Expected: 0, Actual: 1 Class.TEST_Relationships.TestOrphanedRelDelete: line 179, column 3 External entry point |
If I select Ignore Apex Test Failures then my package installs succesfully.
When I ran the tests in the Developer Org the code passes all the tests.
Can someone let me know why this might be happening??
\I would like to know if it is ok to select Ignore Apex Test Failures during installation as I read that it is not best practice.
Thank you
Need to see the code to be sure.
Usually what happens for me in this case is that the packaging org has one set of data assumptions and your test org has another. Your test then doesn't narrow it's expected results enough to meet whats in your packaging org.
How to fix: update your test to be more explicit about the data it's testing for.
Thank you for your quick response.
I have included the Test class below.
Could you tell me where we are going wrong with this??
Thank you
Hi,
I think nothing will happen if you select Ignore Apex Test Failures during installation, from Winter'12 release of Salesforce, while installing the package you will not see 'Ignore Apex Test Failures' option also.
Sridhar Bonagiri