Spotting

I've been spotting for over a week!! Please help I've got about a week until my period starts and I had unprotected sex two 
weeks ago and he came inside me fully. But I also have endometriosis so I've been came in ALOT and I've never ever gotten pregnant. When can I take this test and is spotting a good indication that I'm pregnant?