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
BI AdminBI Admin 

Apex Test with several methods

Hi !

I have created an APEX test class to test and cover one of my class.
This class has 4 methods.
When I comment one of them and run it, the code coverage is the sum of the code coverage of the 3 methods run. Until then, everything is alright.
The problem appears when I uncomment my last class. In that case, the code coverage is only taken from ONE of the 4 methods run, even if all of them are marked as passed. Thus, my code coverage drops drastically !

Was there a recent udpate regarding APEX test class in Salesforce ? Is there some methods limits, I have never seen that before.

Thanks for the help.

(Don't hesitate to request my code if you need it, but I don't think this is a code issue, everything works as expected independantly.)
BI AdminBI Admin
Also another class that was previously covered more than 75% by its test class is now 44%, that's why I think it could be an update from Salesforce but I haven't seen any notification or critical update.