Ovulation tests work by detecting the presence of luteinizing hormone (LH) in a woman's urine. LH is a hormone that is naturally produced by the body and plays a key role in the menstrual cycle. LH levels increase dramatically just before ovulation, triggering the release of an egg from the ovary.