A sweat test helps diagnose cystic fibrosis in children, a genetic condition that affects the lungs and the digestive system. It involves collecting sweat and assessing the amount of salts (chloride) in it. Those with cystic fibrosis have a higher than normal level of salt in their sweat (13).