Hello SF community,
I have been trying to deploy my triggers using outbound change set from sandbox to production - but kept getting errors (no 75% test coverage). This is my first time deploying trigger to prod. I am not sure how to tackle this apex test.
I have 2 types of triggers:
1) insert a new record to another sobject when main sobject's (AFTER update) field(s) changes
2) update another sobject (AFTER insert) after insert a new record to the main sobject
I have no success of creating a correct apex unit test for my triggers and I wondering if anyone has sample apex unit test codes that would help pass the deploy test for the two types above. Any suggestions are greatly appreciated. Thanks Bryan.
5 comments
I have figured out the issue. I am good now. Thanks Chris and Taulant.