Anxiety and late period

So, my ex fiance and I have recently parted ways, now my period is late, but I haven't took a pregnancy test; assuming that its late because I have lost about 30 pounds since the break up. I don't know if I should give him a heads up or wait until I take the pregnancy test. He so desperately wants a child, me as well. But I don't want to take the test alone because I have an anxiety disorder and I don't know how what will happen whichever way the results read. So I don't know what to do.