Infection with the adult roundworm is usually diagnosed by identifying eggs in a sample of stool. Sometimes adult worms are found in the stool or vomit. A chest x-ray may detect signs of the migration into the lungs. Blood tests, such as a complete blood count or CBC, may show higher levels of some kinds of white blood cells.