Test validity refers to the ability of a diagnostic test to accurately measure what it is supposed to measure.