A safety fence for a vehicle testing device includes a fixed fence part structured to be arranged substantially in parallel with a wheel of a test vehicle, wherein the test vehicle is placed on a roller exposed through a roller opening of a pit cover. A first foldable fence part is attached to an end portion of the fixed fence part, and structured to swing outwardly of the fixed fence part. A second foldable fence part is attached to an end portion of the first foldable fence part, and structured to swing outwardly of the first foldable fence part. A third foldable fence part attached to a lower end portion of the fixed fence part, and structured to be arranged in parallel with the fixed fence part.