###
计算机系统应用:2019,28(2):68-74
←前一篇   |   后一篇→
本文二维码信息
码上扫一扫!
Linux平台下代码覆盖率报告自动化输出设计
(1.武汉邮电科学研究院, 武汉 430010;2.烽火通信科技股份有限公司, 武汉 430010)
Design of Automatic Output of Code Coverage Report under Linux Platform
(1.Wuhan Research Institute of Posts and Telecommunications, Wuhan 430010, China;2.Fiberhome Telecommunication Technologies Co. Ltd., Wuhan 430010, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 147次   下载 106
投稿时间:2018-08-06    修订日期:2018-09-05
中文摘要: 白盒测试中经常用到覆盖率测试.轻量级覆盖率测试工具GCOV在使用上具有操作复杂繁琐的弊端.本文所述的设计基于GCOV覆盖率测试的原理,依据shell脚本批处理的特点将各部分操作封装为脚本工具;通过Expect脚本工具对上一操作是否成功进行断言,实现各脚本工具调用的联动.通过该设计进行覆盖率报告输出比传统的操作节省了大量时间.同时,本设计具有操作简易、便于移植的特点.极大的减少了工作人员重复的操作,提高了软件开发测试的效率.
中文关键词: Linux  分布式系统  覆盖率  脚本  自动化
Abstract: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.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
石佳琦,陈鹏.Linux平台下代码覆盖率报告自动化输出设计.计算机系统应用,2019,28(2):68-74
SHI Jia-Qi,CHEN Peng.Design of Automatic Output of Code Coverage Report under Linux Platform.COMPUTER SYSTEMS APPLICATIONS,2019,28(2):68-74

用微信扫一扫

用微信扫一扫