There really is not test as to WHEN you will go into labor.  Cervical dilation won't even give you too much info.  There is a test that tells if you're in preterm labor, but it doesn't predict anything in the future We do have a test to see if your water broke.