You need to sign in to do that
Don't have an account?
ryanelkins
Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
I have 7 triggers - they are all at 100% code coverage according to the Develop -> Apex Triggers page save for 1 at 76%.
When I do a "Run all Tests" from Develop -> Apex Classes I am sitting at 85% code coverage.
However, when I try to upload my package it fails with a "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required."
What gives?
Solved my own problem minutes later - the class containing all the tests for the triggers has to be included in the package - I had inadvertently left it out.
All Answers
Solved my own problem minutes later - the class containing all the tests for the triggers has to be included in the package - I had inadvertently left it out.
I am also getting this problem but everything in the package is uploaded.
When I run tests, all the triggers have at least 1% coverage.