What tests are done to detect if someone has diabetes before that person starts showing symptoms of it?

What tests are done to detect if someone has diabetes before that person starts showing symptoms of it?