function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
erikvmerikvm 

Deploying triggers to Developer Edition and writing test classes

I have recently started learning about triggers and classes in Apex. One thing I'm unsure about is deploying triggers to the developer edition. I know you can't push code directly to a production environment without getting 75% code coverage, but what if my triggers that I deploy in the developer edition conflicts with other triggers / SObjects? Are people writing test classes somehow before uploading the trigger to the developer edition (for instance if you're using Eclipse or some other IDE)
Gokula KrishnanGokula Krishnan
Yes, you're right need to write test class for the trigger or apex class, to move the code to production. You use sandbox to work on writing classes.

Referencehttps://trailhead.salesforce.com/en/modules/apex_testing/units/apex_testing_triggers

If it helps you, please mark is as best answer, so it will be helpful for other developers.