The best test to check for heart problems is an electrocardiogram (ECG), which measures the electrical activity of the heart. It’s a quick, non-invasive test that can detect irregular heart rhythms, heart attacks, and other cardiac conditions. Other tests like echocardiograms, stress tests, and coronary angiograms may also be used for a more detailed evaluation based on the condition.