Pregnancy testing

How soon(early) can you test and it come out accurate?