A lung capacity test, also known as spirometry, measures the amount of air a person can inhale and exhale, as well as how quickly they can exhale.