You need to sign in to do that
Don't have an account?
Med Usa1
A test class for a trigger
Hello,
I would like to know when a trigger is deployed, is the test class already used ? Or it's only used during the deployment ?
As I have a pb with a deployed trigger and its test class to deploy another trigger, I was thinking I could inactivate the test class already deployed by Eclipse ? Can you confirm me if my idea is correct ?
Thank you.
When you write a test class ......It doesnt mean you test class is only for that particular trigger
Test class checks for code coverage of all triggers on that object
So can I desactivate this test class to deploy my trigger ? Or it's dangerous ?
To deploy a trigger
Deploy both trigger and test class into production
Yes I know but :
I have 2 triggers and 2 test classes on opportunity : one is already deployed and another is to deploy.
The trigger to deploy has an error during the deployment due to the test class of the first trigger already deployed.
So I was thinking to desactivate the test class of the trigger already deployed to try to deploy the new trigger.
Thank you.
Yeah, any Apex Trigger/Class has to have at least 75% code coverage by active test methods when you deploy from your sandbox instance to your production instance.
So can I desactivate the test class already deployed to deploy my new trigger ?