摘 要: 嵌入式软件通常采用交叉开发的方式,尽早进行软件测试可以及时发现软件开发初期的不足。单元测试 是嵌入式软件开发过程中最基础级别的测试活动。本文对嵌入式软件的单元测试进行了分析,主要包括测试工具的选 择、测试内容的梳理和测试过程的优化,重点阐述了注意事项及原则。通过总结分析,提出了适宜操作的嵌入式软件单 元测试方法。实践证明,该方法大大提高了软件测试水平和软件产品代码的质量。 |
关键词: 测试计划;单元测试;测试过程;嵌入式软件 |
中图分类号: TP311.5
文献标识码: A
|
|
Research on the Unit Testing Method for Embedded Software |
LIU Jia,YANG Yongwen,LI Jinhua1,2
|
1.( 1.Shanghai Marine Diesel Engine Research Institute, Shanghai 201108, China;2. 2.Low Speed National Engineering Laboratory, Shanghai 201108, China)
|
Abstract: As the cross-development method is usually applied for embedded software,software testing is conducted early,so as to promptly find out the defects and problems at the early stage of software development.Unit testing is the basic testing in the process of embedded software development.This paper analyses embedded software unit testing,including the choice of testing tools,the analysis of testing content and the optimization of testing process,mainly describing the notes and principles.Through the comprehensive summary and analysis,the paper proposes an easy-to-operate and suitable unit testing method for embedded software.Practice indicates that this method greatly improves the level of software testing and software product quality. |
Keywords: testing plan;unit testing;testing process;embedded software |