Stress tests demonstrate how effectively your heart functions under stressful conditions. When your heart is exerting maximum effort to pump blood throughout your body, some cardiac illnesses are simpler to detect. Stress tests thus measure your heart rate when you work out on a treadmill or stationary bike.