Not that easy on a diesel. They have extremely high compression and I don't think a typical compression test gauge goes high enough. It's possible to find a dead cylinder by using an infrared thermometer on the exhaust manifold when you first start the engine. Live cylinders will heat up very quickly.