开发者

C++ unit test framework again

开发者 https://www.devze.com 2023-01-28 07:11 出处:网络
I have been looking for specific properties from a unit test framework in c++ but I hav开发者_如何学Ce struggled find all of the following properties in a framework:

I have been looking for specific properties from a unit test framework in c++ but I hav开发者_如何学Ce struggled find all of the following properties in a framework:

  1. Creation of Stubs (only in c++test).
  2. Has Code-Coverage tool (only in c++test).
  3. VS integration (Common enough)
  4. Fixtures (very common in most c++ frame works)
  5. Integration with a continuous build system (unable to find it at all in any Framework)
  6. Predicate support (Very rare, only able to find that boost has this)

Anyone know of any frameworks which have all these properties (or most of them)?


  1. GoogleMock from Google or Isolator++ from Typemock. Isolator++ is a mocking framework which works with several UT frameworks.
  2. You don't need that as part of a UT framework (you can instrument binaries and get coverage in VS).
  3. Isolator++ has VS integration AFAIK.
  4. Like you are saying this is very common, so it will be hard to not find it in mainstream frameworks.
  5. The continuous build system should support your framework if you really want that (TeamCity supports a couple of them for example). Otherwise you can always wrap it with some scripts.
  6. Not sure what you require here.

HTH.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号