The Spurling test is performed by applying downward pressure to the patient's head with the patient's neck extended and rotated toward the involved side. This neck position narrows the intervertebral foramina on the affected side and reproduces the radiating pain if there is pathology at the root or foramen.