I'm trying to deploy a class to production, and after doing some reading I set up the proper ant things and decided to deploy the sample classes to the sandbox first. I get the following errors:
Code Coverage Failures: 1. Class: CalculateBusinessHoursAges -- Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required 2. Average test coverage across all Apex Classes and Triggers is 11%, at least 75% test coverage is required. *********** DEPLOYMENT FAILED ***********
They have been using Saleforce for 10 years at least, so there are 100s of classes and triggers, many of which were automatically created by integrations, etc and have no tests/are hidden so I couldn't add them if I tried... Does anyone know a way around this? I just want to deploy one class!