Genetic testing

I was wondering if anyone ever did the testing through the dr to find out gender and other things. Btw I’m not sure I’m calling it the right test but maybe you will know what I’m talking about. How accurate is the gender results?