【文件属性】:
文件名称:waf-unittest:Waf单元测试模块
文件大小:1.36MB
文件格式:ZIP
更新时间:2021-05-21 17:12:45
C++
另一个Waf单元测试
关于
这是带有内置google-gtest支持的waf的unittest模块。 其中包括gtest-1.7.0,因此无需安装即可使用gtest。
用法
将unittest_gtest.py复制到您的项目目录中。
$ wget http://github.com/tanakh/waf-unittest/raw/master/unittest_gtest.py
将load('unittest_gtest')添加到options()和configure()中。
def options(opt):
opt.load('compiler_cxx unittest_gtest')
def configure(conf):
conf.load('compiler_cxx unittest_gtest')
在测试程序的功能中添加“ testt”或“ gtest”。