首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于单元测试的车载时钟同步协议开发方法
引用本文:罗峰,徐金鹏.基于单元测试的车载时钟同步协议开发方法[J].汽车技术,2019(5):1-5.
作者姓名:罗峰  徐金鹏
作者单位:同济大学
摘    要:在车载时钟同步协议开发过程中引入开源单元测试框架Cpputest,使代码开发过程与单元测试过程相结合:通过合理的文件依赖关系和可测的代码接口,软件模块可以脱离实际硬件平台独立运行;通过编写测试用例,每一次代码改动均可完整验证其可靠性,从而避免缺陷引入,提高了代码质量。运行示例测试结果表明,尽管开发初期工作量增加,但该方法减少了后期维护成本,同时强制要求开发者使用更合理的软件架构,从而减少模块的交接、移植等工作带来的影响,延长了软件的寿命。

关 键 词:单元测试  时钟同步协议  开源单元测试框架  软件质量

The Development Method for Automotive Clock Synchronization Protocol Based on Unit Test
Luo Feng,Xu Jinpeng.The Development Method for Automotive Clock Synchronization Protocol Based on Unit Test[J].Automobile Technology,2019(5):1-5.
Authors:Luo Feng  Xu Jinpeng
Institution:(Tongji University,Shanghai 201804)
Abstract:Open source unit test framework Cpputest is introduced in the development of automotive clock synchronization protocol,which combines the code development with unit testing.The software module could run independently from the actual hardware platform through reasonable file dependency and testable code interface.By writing test cases,each modification on the code could fully verify its reliability,thereby avoiding defect and improving quality.Operation case test results show that,although workload increase for the initial development,this method reduces the maintenance cost and forces developers to use more reasonable software architecture,thereby reducing the effect during the handover and migration,it also extendes the life span of the software.
Keywords:Unit test  Clock synchronization protocol  Open source unit test framework  Software quality
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号