There is no test for IBS. Doctors will diagnose IBS based on your symptoms. However, doctors will usually do tests to make sure your symptoms are not caused by other, more dangerous, problems.