A compression test is simple. It measures the pressure that each cylinder will hold. You can use the data to compare to the other five cylinders and with previous knowledge to help diagnose a engine problem.
An example of this test can be see here: Comprssion Test
about 2/3 down the page. All credit for that goes to resident member Dudesky for that info.