To test the gas line, turn off the gas valve at the stove and remove the gas cap. Then, hold the end of the gas line with one hand while turning the knob on the other side with the other hand. You should hear a hissing sound as the gas escapes through the pipe. If not, check the gas line connections.