Doctors can diagnose many skin problems by discussing your symptoms and examining your skin. Sometimes, you may need testing. A variety of skin tests can help diagnose skin problems such as bacterial, viral, or fungal skin infections. A skin biopsy can help tell the difference between rashes, malignant (cancerous) cells, and benign (noncancerous) growths.