You need to sign in to do that
Don't have an account?
Armando Guzman
Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
Hi Guys
I got this error when i tray to deploy a small triger i created, seem works fine in sanbox
any ideas
The code is:
1 2 3 4 5 6 7 8 9 10 | trigger Update_region on Account (before insert, before update) { |
Thanks in advance
Hi,
Please go through the below site for more details on writing test classes for triggers.
http://teachmesalesforce.wordpress.com/2011/05/07/how-to-write-a-trigger-test/
Regards,
Sridhar Bonagiri
All Answers
Hi,
I think you are getting this error while you are deploying this trigger to the production org from sandbox. If it is yes then you need to write a test class for this trigger to the test coverage. In SFDC you need to cover the code through test classes.
Regards,
Sridhar Bongiri
Thanks mate, well I was readding about the classes (btw I am new in this) and I can't make this possible, any additional help?? Thanks
Hi,
Please go through the below site for more details on writing test classes for triggers.
http://teachmesalesforce.wordpress.com/2011/05/07/how-to-write-a-trigger-test/
Regards,
Sridhar Bonagiri
Thanks very much