Although many stool tests do not require dietary restrictions, you might need to fast for some of them. People with watery diarrhea may have stool electrolyte and osmolality tests, which are generally not affected by specific foods but sometimes require fasting.