Boost Test Vs Google Test Framework

前端 未结 3 1449
执笔经年
执笔经年 2021-01-30 09:01

I am new to Unit Testing world, basically I am c++ developer working on a large product for almost 3 years, and now I\'ve decided to perform automated unit testing of my code. F

3条回答
  •  滥情空心
    2021-01-30 09:29

    If you are already using Boost libraries, then stick to Boost Test Libs. It should take care of most of your logging requirements. Otherwise, Google-test is recommended. I've used it in a large project and found it easier to use. Most importantly compiler-error messages are easier to locate in GTEST; boost uses templates.

    I have never written complicated tests using either of these two libraries. For simple tests, any of them would do fine. Although google-test will save you some compile time.

    Boost-test with boost-log is really a good combination. Try it!

提交回复
热议问题