Vitamin B12 testing is most often performed at the doctor’s office or another medical setting like a laboratory or hospital. Vitamin B12 tests are normally prescribed by a doctor but may be available without a doctor’s orders at a walk-in lab or through an at-home test kit.