Testing for gestational diabetes You are required to fast for 8 to 12 hours (you may drink water during this period) and then you have a blood test. After the blood test you have a drink that contains glucose.