Spirometry is the most common type of pulmonary function or breathing test. This test measures how much air you can breathe in and out of your lungs, as well as how easily and fast you can the blow the air out of your lungs. Your doctor may order spirometry if you have wheezing, shortness of breath, or a cough.