Ascariasis can also cause a cough ... Apart from seeing eggs, larvae, or adult worms in the stool or near the anus, tests to confirm infection include: Pinworms are rarely spotted in stool ...