期刊文献+

Linux平台下代码覆盖率报告自动化输出设计

Design of Automatic Output of Code Coverage Report under Linux Platform
下载PDF
导出
摘要 白盒测试中经常用到覆盖率测试.轻量级覆盖率测试工具GCOV在使用上具有操作复杂繁琐的弊端.本文所述的设计基于GCOV覆盖率测试的原理,依据shell脚本批处理的特点将各部分操作封装为脚本工具;通过Expect脚本工具对上一操作是否成功进行断言,实现各脚本工具调用的联动.通过该设计进行覆盖率报告输出比传统的操作节省了大量时间.同时,本设计具有操作简易、便于移植的特点.极大的减少了工作人员重复的操作,提高了软件开发测试的效率. Coverage testing is often used in white box testing.The lightweight coverage testing tool GCOV has the disadvantage of operating complicatedly.The design described in this paper is based on the principle of GCOV coverage testing.According to the characteristics of batch processing of shell script,all parts of the operation are encapsulated as script tools.Through the Expect script tool asserting whether the last operation is successful or not,to achieve all script tools being excuted automatically.The output of coverage report by this design saves a lot of time than traditional operation.At the same time,this design has advantages of operating simplely and transplanting easily.It greatly reduces the repeated operation of programmers and improves the efficiency of software development and testing.
作者 石佳琦 陈鹏 SHI Jia-Qi;CHEN Peng(Wuhan Research Institute of Posts and Telecommunications,Wuhan 430010,China;Fiberhome Telecommunication Technologies Co.Ltd.,Wuhan 430010,China)
出处 《计算机系统应用》 2019年第2期68-74,共7页 Computer Systems & Applications
关键词 LINUX 分布式系统 覆盖率 脚本 自动化 Linux distributed system coverage script automation
  • 相关文献

参考文献6

二级参考文献23

共引文献55

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部