jeudi 5 mars 2015

Enable GoogleTest/GoogleMock colored output on Ubuntu 14.04

I have successfully installed GoogleMock (v1.7.0) on Ubuntu and MacOS X 10.10, using CMAKE. Everything works fine, except that the output is automatically colored in MacOS but not in Ubuntu.


My solution for now (as with other testing frameworks) is put the test output through a bash script, i.e.:


./test | color.sh


but the fact that MacOS does it automatically makes me think it should be possible in Ubuntu/Debian too.


BTW I had already activated the bash colored output in ~/.bashrc


Aucun commentaire:

Enregistrer un commentaire