Hi I have 85% code coverage as stated by the developer console. All my classes have a test class and are above 75% with the only exception being my trigger at 66% coverage.

The error is as follows:

No test methods found in the Apex code included in the package. At least 75% test coverage is required.

Any help would be greatly appreciated.

Also is there another way to see the overall code coverage without having to use the developer console?

  • 5
    Are you trying to build a managed package? If so, did you make sure you included the test classes in the package? They are not automatically added, you need to do it manually. When the package is being created, only tests that are included in the package get run. – Jason Hartfield Jul 7 '15 at 16:53

You can see the total coverage in your code running all the test from the ORG. In the Setup menu you have a point to see the test and this page have a button to launch all the test, at the end of this process the ORG will show the total coverage, show the classes coveraged with more than 75% in green and the other in red.

enter image description here

To check the total code coverage go to: Setup>Build>Develop>Apex Classes -> Estimate your organization's code coverage

enter image description here

Regards. David Lirio

About the error, try to cover more lines in your triggers to have this class in the % neccesary.

  • 1
    I don't see anything that states the overall coverage or any coverage. Just the number of classes ran and number of methods completed (11/11). – Scott Jul 7 '15 at 14:56
  • Previous answer edited with this information. Regards. David Lirio – David Lirio Jul 8 '15 at 7:19

You need to include all tests in the package itself & you must have at least 1% test coverage for triggers. If you are sure you have over 75% code coverage the. Look towards the triggers

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.