what should I do?

there might be a chance I'm pregnant and I just broke up with my boyfriend because he was emotionally and physically abusive, I just couldn't take it anymore... and now I'm late for my period and I'm taking a test soon, what should I do if the test comes up positive?? I don't think I'll be able to get back together with him and it wouldn't be a good idea for me anyways....