You need to sign in to do that
Don't have an account?
Chris Walters 9
debug statements in methods under unit tests not appearing
version 47.0
A curious thing: I've written a unit test that exercises a Task.afterInsert() method. I've added debug -entering and -exiting statements to this method as well as the @isTest method, which creates and inserts a new Task.
Upon executing of the test I see my @isTest debug statements in my logs, the log shows the Id of the newly created Task, good so far ... but I do not see the debug statements from the method-under-test.
Why is that?
TIA,
Still-learning Chris
A curious thing: I've written a unit test that exercises a Task.afterInsert() method. I've added debug -entering and -exiting statements to this method as well as the @isTest method, which creates and inserts a new Task.
Upon executing of the test I see my @isTest debug statements in my logs, the log shows the Id of the newly created Task, good so far ... but I do not see the debug statements from the method-under-test.
Why is that?
TIA,
Still-learning Chris
Check that please.
If it helps please like and mark as correct, it may help others.
if not do you have that part of the code to see more?
If it helps please like and mark as correct so the question can be solved and people with the same issue can find this solution faster.
Good luck !