DEV Community

Discussion on: What do you use for testing c/c++ apps?

hilaberger92 profile image
Hila Berger

Gtest is the optimal test framework for c\c++, it has everything you need and for free.
For mocking I use Isolator++, it is not cheap but very powerful and unique:\
It can mock almost any type of behavior in any kind of code.

I find accessing private modules in your code and faking static methods super important and that makes my life so much easier.
TBH i haven't found any other tool that is as much powerful as that one, all mocking frameworks these days demand refactoring of your code and that always causes tons of new errors.

Good Luck!

silvamatteus profile image
Matteus Silva Author

Thank you! I also found Google Mock. Do you have any experience (good or bad) about GMock?