您的位置:首页 > 编程语言 > C语言/C++

关于C++ code coverage tool 的研究(1)

2016-10-08 16:52 411 查看
http://www.taobaotesting.com/blogs/qa?bid=8447

实习快两个月了,发些研究成果与总结。关于覆盖测试的基本概念可以上网查阅,这里直接从研究对比开始讲吧。因为内容太多,开始之前先给个目录:

(1)覆盖测试工具的简要对比

(2)LINUX下工具GCOV的实现原理

(3)LINUX下工具GCOV的使用说明

(4 ) WINDOWS下工具coverage validator原理与使用说明

(5)修改GCOV适用于分布式测试覆盖率统计原理与方法

下面是部分C++ code coverage tool 的一个粗略的对比表格。这里重点研究了GCOV,COVTOOL,coverage validator,后续有时间的话,会针对旺旺重点研究下XCOVER. 有些工具没有具体研究,有兴趣的话,可以查看相应链接。

Free orcommercial
Platform/complier
Coverage level
Show Execute counters
Easy to use
output
Useable in large
implement
others
gcov
Free
Linux ,only gcc
Decision coverage
Yes
yes
HTML report
No
Instrument as compiling
nonsupport shared library
COVTOOL
Free
linux
Line
boolean
no
Merge.db, ASCII report
yes
Instrument as compiling
Nonsupport thread
xcover
Free
platform-independent library, gcc4.3+
Line coverage
Yes
no
HTML report
?
Source file only,denpend on stlsoft
Written in c
GCT
Free
Unix,linux,Only for c
Branch/condition
no
yes
No HTML
yes
Instrument as compiling
Only for c,work well with if,case,for
Coverage validator
Commercial
Windows
decision
yes
yes
HTML,XML,
yes
No recompile,With pdb file
Powerful filters,do not affect performance
BullseyeCoverage
Commercial
Windows,unix,
Branch/condition
no
yes
Csv report,Easy to change to perl
yes
hook
Work well with vc,cppunit
Pure coverage
Commercial
Unix,windows
decision
yes
yes
HTML,XML,
yes
Object Code Insertion
Work well with Purify
其他可以参考:Testwell CTC++, CoverageMeter,Dynamic Code Coverage, TCAT C/C++,


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>

阅读(1208) | 评论(0) | 转发(0) |

0
上一篇:shell 最简单的循环

下一篇:关于C++ code coverage tool 的研究(2)—GCOV 实现原理

相关热门文章

linux 常见服务端口

xmanager 2.0 for linux配置

【ROOTFS搭建】busybox的httpd...

openwrt中luci学习笔记

什么是shell

linux dhcp peizhi roc

关于Unix文件的软链接

求教这个命令什么意思,我是新...

sed -e "/grep/d" 是什么意思...

谁能够帮我解决LINUX 2.6 10...

给主人留下些什么吧!~~

评论热议
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: