You need to sign in to do that
Don't have an account?
BI 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.)
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 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.