What is the point of the glucose test?

La
I'm scheduled to take mine my next doc appointment in a couple weeks, but my doc didn't tell me why.. what is it testing? I chose fruit punch flavor 😛 and have read on here more than once that that flavor is no bueno