In many cases, the diagnosis of sleep apnea requires a sleep test (either at-home or in a sleep lab). A formal sleep apnea test allows your doctor to determine the best treatment plan based on your needs, symptoms, and severity.