A treadmill test is an ECG performed while exercising and helps a doctor find out how well your heart handles work. As your body works harder during the test, it requires more oxygen, so the heart must pump more blood. The test can show if the blood supply is reduced in the arteries that supply the heart.