Diagnosis is usually based on a combination of clinical symptoms and laboratory tests. A healthcare provider may order a nasopharyngeal swab to test for the presence of Bordetella pertussis. Blood tests and chest X-rays might also be used to rule out other conditions.