You need to sign in to do that
Don't have an account?
swathi medak 9
code coverage all tests not showing
I have written a test class for which it is showing 45% coverage, when i clicked on the code coverage to see what part of my code is not tested, the option is none and i cant see all tests option also i cannot see the blue and red coloured highlights in my test class? how can i see the coloured highlights and how can i get the all tests option?
THANKS!
THANKS!
https://help.salesforce.com/articleView?id=000331049&type=1&mode=1 (https://help.salesforce.com/articleView?id=000331049&type=1&mode=1)
All Answers
In the developer console, click on the Test tab. Then run your test class. Once the execution is completed, open you main class from the Overall code coverage section present in the bottom right. If you open the main class in this way, it will show the lines covered in blue and lines not covered in red.
You can get them back by selecting the 'Test > Always Run Asynchronously' checkbox and re-running your test.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
thanks i tried re-running the test and opened the main class from overall code coverage , but still its not showing the lines executed in blue.
https://help.salesforce.com/articleView?id=000331049&type=1&mode=1 (https://help.salesforce.com/articleView?id=000331049&type=1&mode=1)
Greetings to you!
- Go to the 'Apex Test Execution'and in option select list deselect the 'Store Only Aggregated Code Coverage' checkbox.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.