a doctor or nurse will often ask a woman to have a examination. medical tests can find the reason for the nipple discharge. a mammogram and ultrasound are two tests that a doctor might use. the fluid that comes out of the nipple may be collected and tested.