If you are experiencing shortness of breath or are concerned about heart damage or lung disease, your doctor may order a cardiopulmonary test. Cardiopulmonary testing (a stress test) helps your doctor measure how well your heart and lungs work during exercise.