You need to sign in to do that
Don't have an account?
wilbur07
Unit testing for simple trigger
I'm at a loss how i can get code coverage with this trigger:
trigger forcemeetingEventtrigger on Event(before insert) { Event[] evt= Trigger.new; Forcemeeting.addforcemeeting(evt); }
Can somebody suggest something at this point that would be useful? I've read all the docs and examples on unit testing.
This provides a stub, but you'll need to add your own Assert statements to confirm your trigger is working. Also--I just typed this into the browser without running it, so it's possible minor tweaks will be needed.
After you get this working in your development environment and it's time to deploy to production, make sure to deploy this class and your trigger at the same time, so it all gets included in the set of tests that produce the code coverage results.