google test 源代码
Google C++ Testing Framework: Google C++测试框架 Feature (1) Google's framework for writing C++ tests on a variety of platforms Linux Mac OS X Windows Cygwin Windows CE Symbian (2) Based on the xUnit architecture (3) Supports automatic test discovery, a rich set of Assertions user-defined assertions death tests fatal and non-fatal failures value- and type-parameterized tests various options for running the tests XML test report generation Google Test is an excellent xUnit style c++ unit test ing framework. It is highly recommended. One (minor) drawback of Google Test is it's text based UI, and this project attempts to help. 本系列的文章,均以gtest-1.5.0为例。在Linux平台下,假设源代码在/usr/src/gtest-1.5.0目录;在Win32平台下,假设源代码在E:/opensource/gtest-1.5.0目录。 2. Compile & install 2.1 Linux platform # cd /usr/src # wget http://googletest.googlecode.com/files/gtest-1.5.0.tar.gz # tar -zxvf gtest-1.5.0.tar.gz # cd gtest-1.5.0 # ./configure # make # make install
用户评论