You need to sign in to do that
Don't have an account?
Richard Cave09035942158259942
Only call the trigger you want to when running a test
We run tests that have to create multiple objects for example we insert an account and a contact to then insert another object which we want to test calling a trigger on that object. As we have triggers on account and contact it also calls those triggers which calls other classes and therefore the tests take longer to run.
Any ideas on doing trigger management as the more triggers that get added in, it will get more complicated and the tests will take longer.
Any ideas on doing trigger management as the more triggers that get added in, it will get more complicated and the tests will take longer.
Use a static variable on trigger and set it true or false from your test class.
Thanks
SFDC