-1

Can any one help me to How to get 100% code coverage for a class which consist multiple methods. My class having nearly 20 Methods and i want to cover code 100%. what are the steps i need to follow.

2 Answers 2

1

If you really want 100% code coverage you really need to write test methods that test all of these 20 methods.

You can skip asserts if you just want the code coverage although I would not recommend it.

1

You need to write tests that cover each of the different methods. The Apex Testing Trailhead module explains how to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy