vendredi 28 septembre 2018

GoogleTest tests declare in separate library

I have a lot of auto-generated tests using the GoogleTest framework. Currently each test is in a .cpp file which is inclued in a larger "Tests.cpp" file, which is then included in the main file. When trying to compile all of them my computer freezes. I've assumed it is because it is trying to compile them in a single output file. Is there a way to write each test fixture in a "normal" way, having an output file for each test fixture/case and then linking them?

Thanks

Aucun commentaire:

Enregistrer un commentaire