The calprotectin test is a diagnostic tool used to measure the level of calprotectin, a protein found in white blood cells, in stool samples. Elevated levels of calprotectin can indicate inflammation in the gastrointestinal tract, commonly associated with conditions like inflammatory bowel disease (IBD), including Crohn's disease and ulcerative colitis.