摘要
嵌入式软件的开发和应用不断增多,使得嵌入式软件的质量逐渐受到人们的关注。嵌入式软件测试保障了嵌入式软件的稳定和可靠,但由于嵌入式软件测试相比较传统的应用软件存在较大的硬件依赖性,致使测试的复杂程度大大提高。覆盖率测试可以很好地体现测试过程中的功能完备、逻辑完整性,进一步发现软件中存在的问题。在单元测试工具Gtest基础上结合lcov覆盖率工具可以实现单元测试和覆盖率测试同步测试,节省了用例的编写时间,实现了测试效率的提升,压缩了测试成本。
With the continuous growth of embedded software development and application,the quality of embedded software has gradually attracted people’s attention.Embedded software testing ensures the stability and reliability of embedded software.However,compared with the traditional application software,the embedded software test has greater hardware dependence,which greatly increases the complexity of the test.Coverage testing can well reflect the completeness of functions and logical integrity in the testing process,and further discover problems existing in the software.In this paper,Gtest combines the lcov coverage tool to realize synchronous testing of unit testing and coverage testing,which saves the writing time of use cases,improves testing efficiency,and reduces testing costs.
作者
刘栋
方丽萍
李国要
LIU Dong;FANG Li-ping;LI Guo-yao(Anhui Jiyuan Inspection and Tesing Technology Co.,Ltd.,Hefei 230088,Anhui)
出处
《电脑与电信》
2022年第10期94-97,共4页
Computer & Telecommunication
关键词
嵌入式软件测试
覆盖率测试
测试方法
embedded software testing
coverage testing
testing methods