Detection of a mutation; genotype; karyotype; or specific alleles associated with genetic traits, heritable diseases, or predisposition to a disease, or that may lead to the disease in descendants. It includes prenatal genetic testing.