主办:陕西省汽车工程学会
ISSN 1671-7988  CN 61-1394/TH
创刊:1976年

汽车实用技术 ›› 2023, Vol. 48 ›› Issue (10): 156-162.DOI: 10.16638/j.cnki.1671-7988.2023.010.032

• 测试试验 • 上一篇    下一篇

基于汽车嵌入式软件的持续集成和持续测试分析

王 帅,蓝启亮,陈 聪,吴光耀,周升辉   

  1. 比亚迪汽车工业有限公司 产品规划及汽车新技术研究院
  • 出版日期:2023-05-30 发布日期:2023-05-30
  • 通讯作者: 王 帅
  • 作者简介:王帅(1989—),男,工程师,研究方向为混合动力汽车控制、嵌入式软件、软件自动化测试,E-mail:sandey. wong@hotmail.com。

Continuous Integration and Continuous Testing Analysis Based on Automotive Embedded Software

WANG Shuai, LAN Qiliang, CHEN Cong, WU Guangyao, ZHOU Shenghui   

  1. Product Planning & Automotive New Technology Research Institude, BYD Automobile Industry Company Limited, Shenzhen 518118, China
  • Online:2023-05-30 Published:2023-05-30
  • Contact: WANG Shuai

摘要: 随着汽车控制器软件迭代速度的加快,其对软件质量提出了更高的要求,故软件集成 和测试周期短而频繁。持续集成/持续测试(CI/CT)已被认可是尽早发现缺陷的最佳实践。 文章分析了汽车嵌入式软件的开发过程,通过引入持续集成测试方法,基于 Jenkins 搭建软件 持续集成测试平台,该平台支持多种开发语言,可以集成调用编译器、模型在环(MIL)测 试、硬件在环(HIL)测试等工具链,从而实现软件集成、测试和缺陷通知完全自动化,将软 件工程师从重复冗长的集成测试任务中解放出来。持续集成测试在某混合电动汽车(HEV) 整车控制器(VCU)软件项目应用以后,可以节省近 90%的软件迭代耗时。

关键词: 持续集成;持续测试分析;软件自动化测试;汽车嵌入式软件

Abstract: As the iteration of automotive embedded software becomes more and more frequent, it poses a higher challenge to software quality, and so software integration and testing cycles become shorter and more frequent. Continuous integration/continus testing (CI/CT) has been acknowledged as the best practice for early detection of defects. This paper analyzes the development process of automotive embedded software, though introducing the method of continuous integration testing, and a software continuous integration testing platform is built based on Jenkins. The platform supports multiple development languages, and can integrate and call the tool chain of compiler, model in loop (MIL) testing, hardware in loop (HIL) testing, etc., so as to realize the complete automation of software integration, testing and defect notification. Finally, engineers can be free themselves from tremendous software development tasks. After the application of continuous integration and continuous testing methods in a hybrid electric vehicle (HEV) vehicle control unit (VCU) software projects, nearly 90% of the software iteration time can be saved.

Key words: Continuous integration; Continuous testing analysis; Software automated testing; Automotive embedded software