摘要
现有测试覆盖率统计方法和工具不能完全满足航天领域大型实时软件系统的特殊需求。针对特殊需求,提出一种面向大型实时软件系统的测试覆盖率快速分析方法,借助于自主开发的C++代码覆盖率插装与分析工具,实现批量化的代码插装,实时采集和统计分析被测软件的语句、分支、条件、MC/DC和函数等覆盖率信息,并输出测试覆盖率详情报告。通过一系列脚本和工具链支持,实现全过程自动化。应用案例表明,该方法快速高效,可以及时调整测试策略,优化测试用例,更快地达到测试充分性要求。
Existing test coverage analysis approaches and tools cannot meet special requirements of large- scale real-time software system in aerospace industry. In this paper, an approach to rapid test coverage a- nalysis for large-scale real-time software system was proposed. With the help of a self-developed C + + code coverage instrumentation and analysis tool, a batch processing system of code instrumentation was implemented. Test coverage information of the SUTs, including statement coverage, branch coverage, condition coverage, MC/DC coverage, and function coverage were collected and analyzed in real-time. With the support of a series of scripts and tool chains, an automatic process was established. A case study shows that the proposed approach is very efficient, and that testers can adjust test strategies in time, im- prove test cases, and achieve the expected testing adequacy more rapidly.
出处
《西南科技大学学报》
CAS
2013年第3期89-94,共6页
Journal of Southwest University of Science and Technology
基金
国家自然科学基金项目(60970022)
关键词
实时软件
测试覆盖率
快速分析
Real-time software
Test coverage
Rapid analysis