A complete pulmonary function test has three parts. You may be given the entire test or only certain parts. The entire test is painless and can last 45–90 minutes. If you get tired, you can take a break between test sections.