Test Driven Development with C++

hahuang65 picture hahuang65 · Mar 15, 2011 · Viewed 21.5k times · Source

Looking to start doing TDD in C++. I've seen CPPUnit, but I was wondering if there are other options that people prefer?

Thanks for your suggestions!

Answer

Tobias Furuholm picture Tobias Furuholm · Mar 15, 2011

I can recommend Google Mock, which has become part of Google Test bundled. We switched from UnitTest++ to Google Test/Google Mock a couple of years ago and have never looked back.

Google Mock can be used even if you don't want to use the mocking facilities. Its matchers are very useful.