Spotting before missed period/positive pregnancy

How long will you spot before your missed period and finding a positive pregnancy test result?