An EEG is a test that measures and records the electrical activity in the brain.