What do I do?

I'm 17 and I might be pregnant. I was having sex with this guy about 2 weeks ago and we were using a condom and then he took it off. Now I'm too nervous to take the test because if I am pregnant my parents will not react well at all. I'm really scared and I don't know how to deal with this. Any advice?