开发者

Suggestion for UnitTest tools for C++

开发者 https://www.devze.com 2023-01-16 16:48 出处:网络
I am startting to develop a module using C++ and yes using VC++ 6.0. Had a look on google test framework but it supports VC 7.1 onwards.

I am startting to develop a module using C++ and yes using VC++ 6.0. Had a look on google test framework but it supports VC 7.1 onwards.

Can any body please suggest few tools for unittesting C++ exes or dlls. If the t开发者_运维百科ool can be integrated to VC++ 6.0 IDE will be great.


And I use UnitTest++.

Also take a look at this thread.


CppUnit

http://sourceforge.net/apps/mediawiki/cppunit/index.php?title=Main_Page


Try Boost.Test (we use it with VS 2005 and I think it's great).

I'm not sure how well it'd work w/rgd to integration, but we use a simple post-build steps to execute the unit tests and that should work in VC6 as well.

While current boost releases no longer officially support MSVC-6, we here use boost 1.34.1 for regular expressions in VC6 and VC8. We do not use the testing framework in VC6, but I checked our build directory and we do build the testing framework for VC6 as well. (because we build regex for both VC6 and VC8, the script just builds test as well)

Since the Boost testing framework seems to mostly rely on macro magic (as opposed to template magic) you might actually stand a good chance even a current version of it is working in VC6.


You can try unit.hpp. I wrote it because I couldn't find any testing framework that I liked. It is very small (371 loc c++11) any should do most task required for unit testing.

0

精彩评论

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

关注公众号