Test classes with 0% coverage
Detection
- RegExp:
Error (.*) Test coverage of selected Apex (Trigger|Class) is 0%
Examples
Error AccountTrigger Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
Resolution
Apex {2} {1} is not covered at all by the test classes of the deployment: every trigger needs at least 1% coverage.
- Add a test class that runs {1}, or add it to the tests of the deployment
- Make sure that none of the classes and triggers of the deployment is 0% covered