Tongue in cheek

Jokingly, insincerely, mockingly, not really meaning something.

The comment by our teacher was tongue in cheek and she did not mean it.