Test Driven Development with C++

前端 未结 3 1281
醉梦人生
醉梦人生 2021-01-31 10:11

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!

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 10:26

    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.

提交回复
热议问题