A stress test monitors your heart while you exercise or are given medication that simulates exercise. It helps to assess how your heart responds to physical stress and can detect issues like blocked arteries or arrhythmias.