When to test?!

How are you supposed to know when to test for pregnancy? If your cycle is so irregular?? Or when you start showing then say oh well im pregnant? Lool