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 samples. They can be identified by visual ...