Wanting to test but can't pee

I keep throwing up and I want to take a pregnancy test but I can't keep enough water down to feel like I need to pee. Any tips?