genetic testing and early gender?

Olive 🦋 • Wife, writer, stay at home mommy to Luna Violet and Kodiak Sage 🌑🐻
What all does the genetic testing consist of? I want to find out the gender sooner, and I'm wondering how to ask my midwife/doctor.