Common tests that are done to diagnose cystic fibrosis include: Sweat test: The test measures the amount of chloride in the body’s sweat. People with cystic fibrosis have a higher chloride concentration.  Chest X-ray Blood test Sputum (mucus) test Lung function test