The Apex testing framework generates code coverage numbers for your Apex classes and triggers every time you run one or more tests. … To deploy Apex or package it for the Salesforce AppExchange, unit tests must cover at least 75% of your Apex code, and those tests must pass.