To help diagnose giardia infection (giardiasis), your doctor is likely to test a sample of your stool. For accuracy, you may be asked to submit several stool samples collected over a period of days. The samples are then examined in a lab for the presence of parasites.