首页 > 编程语言 > 详细

在borland c++ builder 中使用 google test (gtest)

时间:2014-09-10 19:08:20      阅读:311      评论:0      收藏:0      [点我收藏+]

google test version: 1.6

c++ builder version: xe6

 

1 download google test 1.6 

2 unzip the zip file. The project file for c++ build is in codegear folder

3 complie gtest.lib and gtest_main.lib, do not do anything with gtest_unittest project (cause there might be error.)

4 set up a sample test project (console application)

  myTestSample

     gtest_src      put files of src folder of Gtest here

     include        put files of include folder of Gtest here

     lib               put gtest.lib and gtest_main.lib here

     testSrc        put the test src here

5 it is ok.  

check the sample project and the Gtest framework at  (http://download.csdn.net/detail/williamwood/7891585)

    

在borland c++ builder 中使用 google test (gtest)

原文:http://www.cnblogs.com/williamwood/p/3964871.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!