Q: 5
What should a developer do to check the code coverage of a class after running all tests?
Options
Discussion
A . Saw something similar in exam reports, Overall Code Coverage panel is what they list for this scenario.
Option A is correct. Developer Console's Overall Code Coverage panel gives you the exact percentage for each class after running all tests. That's also what official docs and practice exams recommend. Anyone seen coverage checked another way?
Option A is right. The Overall Code Coverage panel in the Developer Console actually refreshes after all tests are run, so you get the most accurate and up-to-date percentage there. D just shows a static number and doesn't reflect immediate test results. Pretty sure this is what Salesforce recommends, but open to other opinions.
Its A, had something like this in a mock and it was definitely the Developer Console Overall Code Coverage panel.
A is the right call. The Developer Console's Overall Code Coverage panel shows the exact coverage percent right after your tests run. Pretty sure this is what exam reports mention too, unless something changed recently.
Why so many code coverage options in Salesforce? Option D
Why do they keep making this confusing? A
A tbh. The Overall Code Coverage panel in Developer Console updates right after tests, so that's the best spot for current class coverage.
Not B, it's A. The list view tab can be misleading and doesn't update live after full test runs, but the Overall Code Coverage panel in the Developer Console gives up-to-date details. Pretty sure that's the main method Salesforce expects here.
A tbh
Be respectful. No spam.