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
si risi ri 

test class coverage differences in sanboxes

Hi Experts,
         I have created a test class for a trigger and apex class for trigger code coverage is 78% and test class is 81% in Sandbox1.
         when I have created same test class for a trigger and apex class, for trigger code coverage is 0% and test class is 0% in another sanbox2.
         Both sanbox1 and sanbox2 are identical but I don't know why the code coverage is not happening in sanbox2. Can anyone know the reason?
Shubham_KumarShubham_Kumar
Hi si ri
While running the test class does any error occur?
Also if you could post your code then we can help you better.

Regards
Shubham Kumar
Boss CoffeeBoss Coffee
Are there any references to existing records that may not be in the other sandbox?