首页> 外文会议>IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice Track >SmartUnit: Empirical Evaluations for Automated Unit Testing of Embedded Software in Industry
【24h】

SmartUnit: Empirical Evaluations for Automated Unit Testing of Embedded Software in Industry

机译:SmartUnit:工业中嵌入式软件的自动单元测试的实证评估

获取原文
获取外文期刊封面目录资料

摘要

In this paper, we aim at the automated unit coverage-based testing for embedded software. To achieve the goal, by analyzing the industrial requirements and our previous work on automated unit testing tool CAUT, we rebuild a new tool, SmartUnit, to solve the engineering requirements that take place in our partner companies. SmartUnit is a dynamic symbolic execution implementation, which supports statement, branch, boundary value and MC/DC coverage. SmartUnit has been used to test more than one million lines of code in real projects. For confidentiality motives, we select three in-house real projects for the empirical evaluations. We also carry out our evaluations on two open source database projects, SQLite and PostgreSQL, to test the scalability of our tool since the scale of the embedded software project is mostly not large, 5K-50K lines of code on average. From our experimental results, in general, more than 90% of functions in commercial embedded software achieve 100% statement, branch, MC/DC coverage, more than 80% of functions in SQLite achieve 100% MC/DC coverage, and more than 60% of functions in PostgreSQL achieve 100% MC/DC coverage. Moreover, SmartUnit is able to find the runtime exceptions at the unit testing level. We also have reported exceptions like array index out of bounds and divided-by-zero in SQLite. Furthermore, we analyze the reasons of low coverage in automated unit testing in our setting and give a survey on the situation of manual unit testing with respect to automated unit testing in industry. SmartUnit is a dynamic symbolic execution implementation, which supports statement, branch, boundary value and MC/DC coverage. SmartUnit has been used to test more than one million lines of code in real projects. For confidentiality motives, we select three in-house real projects for the empirical evaluations. We also carry out our evaluations on two open source database projects, SQLite and PostgreSQL, to test the scalability of our tool since the scale of the embedded software project is mostly not large, 5K-50K lines of code on average. From our experimental results, in general, more than 90% of functions in commercial embedded software achieve 100% statement, branch, MC/DC coverage, more than 80% of functions in SQLite achieve 100% MC/DC coverage, and more than 60% of functions in PostgreSQL achieve 100% MC/DC coverage. Moreover, SmartUnit is able to find the runtime exceptions at the unit testing level. We also have reported exceptions like array index out of bounds and divided-by-zero in SQLite. Furthermore, we analyze the reasons of low coverage in automated unit testing in our setting and give a survey on the situation of manual unit testing with respect to automated unit testing in industry.
机译:在本文中,我们的目标是嵌入式软件的自动单元覆盖。为实现目标,通过分析工业要求和我们以前的自动单元测试工具的工作CAUT,我们重建新工具SmartUnit,解决我们合作伙伴公司的工程要求。 SmartUnit是一种动态符号执行实现,它支持语句,分支,边界值和MC / DC覆盖范围。 SmartUnit已被用于在实际项目中测试超过一百万行代码。对于保密动机,我们为实证评估选择了三个内部实际项目。我们还对两个开源数据库项目,SQLite和PostgreSQL进行了评估,以测试我们工具的可扩展性,因为嵌入式软件项目的规模大多数不大,平均为5K-50K代码行。从我们的实验结果,一般来说,在商业嵌入式软件中超过90 %的函数达到100 %语句,分支,MC / DC覆盖率,超过80 %的SQLite函数达到100 %MC / DC覆盖, PostgreSQL中的函数超过60 %达到100 %MC / DC覆盖范围。此外,SmartUnit能够在单元测试级别找到运行时异常。我们还报告了SQLite中的界限和划分的数组索引等异常。此外,我们分析了我们环境中自动化单元测试中低覆盖率的原因,并对工业中自动单元测试的手动单元测试的情况进行了调查。 SmartUnit是一种动态符号执行实现,它支持语句,分支,边界值和MC / DC覆盖范围。 SmartUnit已被用于在实际项目中测试超过一百万行代码。对于保密动机,我们为实证评估选择了三个内部实际项目。我们还对两个开源数据库项目,SQLite和PostgreSQL进行了评估,以测试我们工具的可扩展性,因为嵌入式软件项目的规模大多数不大,平均为5K-50K代码行。从我们的实验结果,一般来说,在商业嵌入式软件中超过90 %的函数达到100 %语句,分支,MC / DC覆盖率,超过80 %的SQLite函数达到100 %MC / DC覆盖, PostgreSQL中的函数超过60 %达到100 %MC / DC覆盖范围。此外,SmartUnit能够在单元测试级别找到运行时异常。我们还报告了SQLite中的界限和划分的数组索引等异常。此外,我们分析了我们环境中自动化单元测试中低覆盖率的原因,并对工业中自动单元测试的手动单元测试的情况进行了调查。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号