C++ unit test framework again
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:
- Creation of Stubs (only in c++test).
- Has Code-Coverage tool (only in c++test).
- VS integration (Common enough)
- Fixtures (very common in most c++ frame works)
- Integration with a continuous build system (unable to find it at all in any Framework)
- 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)?
- GoogleMock from Google or Isolator++ from Typemock. Isolator++ is a mocking framework which works with several UT frameworks.
- You don't need that as part of a UT framework (you can instrument binaries and get coverage in VS).
- Isolator++ has VS integration AFAIK.
- Like you are saying this is very common, so it will be hard to not find it in mainstream frameworks.
- 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.
- Not sure what you require here.
HTH.
精彩评论