Genetic testing can reveal mutations in BRCA genes and others associated with increased cancer risk, but it isn’t recommended for everyone.