How do you check mega ohms on compressor?

Usually you check mega-ohms by reading the resistance between compressor shell and the windings. There should be a large amount of resistance which means the windings are not shorted to the compressor case or shell. Use a DVM (digital volt ohm meter) to check the resistance.