When to test?

If you test before your period is due isn’t it not accurate? Shouldn’t you wait till the first day your missed period is due? How pointless is testing before then?