You need to sign in to do that
Don't have an account?
robert webber 8
Developer console checkpoints not working in unit tests
Checkpoints don't fire when set in a unit test method or any method called by a unit test method. It was working a few weeks ago and it just stopped working. They work if I invoke code from the app UI. Not sure if it has anything to do with it, but I create a role as administrator in the test setup and do a RunAs this administrator, but this hasn't changed.
Below is my log level setup. Doesn't make any difference if I set to Finer or Finest.
Any ideas?
Below is my log level setup. Doesn't make any difference if I set to Finer or Finest.
Any ideas?
Your query is answered in the below blogs,
https://salesforce.stackexchange.com/questions/46172/do-checkpoints-work-with-unit-tests#:~:text=The%20trick%20here%20is%20you,column%20is%20set%20to%20Finer.
https://developer.salesforce.com/forums/?id=906F0000000AzRgIAK
I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.
Thanks.
Anyway, I removed the "RunAs" statement in my unit test and everything worked like it used to (did no have to uncheck the box). I have no idea why this changed. I will just have to remove the RunAs when I'm debugging a unit test.
Thamk you for your help.
Thanks.