How is STD testing done? Will I just have to pee in a cup, or will the doctor have to do an exam?

U want accurate? There are more than a dozen infections that can be passed sexually and a few can be sometimes be detected in your pee. If you have been exposed, the best evaluation is one done after a good history, exam and testing guided by the clinicians impressions. Since some STI's can result in your sterility or chronic life altering illness, you might want to get the best available evaluation.