Also called a diagnostic test, this checks to see if the active (live) virus is present in your body. In the case of COVID-19, this usually involves taking a sample from the back of your nasal cavity (swab test) so it can be analyzed in a lab to see if it contains genetic material from the virus.
SOURCE: CDC