Doctors can tell if you have ankylosing spondylitis based on your symptoms and family history and by doing an exam. They will also do tests: