The estrogen receptor (ER) test is a diagnostic tool used primarily in the context of breast cancer. It measures the presence of estrogen receptors in cancer cells. Estrogen receptors are proteins that, when bound by estrogen, can stimulate the growth of breast cancer cells. This test helps in determining whether the cancer cells depend on estrogen to grow.