Breath tests typically involve a patient exhaling into a device that collects and analyzes exhaled air. The analysis is often done using techniques such as gas chromatography, mass spectrometry, or infrared spectroscopy. These methods can identify and quantify trace amounts of gases such as hydrogen, methane, and carbon dioxide, which may be linked to specific health conditions.