期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
Unit Test Data Generation for C Using Rule-Directed Symbolic Execution 被引量:1
1
作者 Ming-Zhe Zhang Yun-Zhan Gong +1 位作者 Ya-Wen Wang da-hai jin 《Journal of Computer Science & Technology》 SCIE EI CSCD 2019年第3期670-689,共20页
Unit testing is widely used in software development. One important activity in unit testing is automatic test data generation. Constraint-based test data generation is a technique for automatic generation of test data... Unit testing is widely used in software development. One important activity in unit testing is automatic test data generation. Constraint-based test data generation is a technique for automatic generation of test data, which uses symbolic execution to generate constraints. Unit testing only tests functions instead of the whole program, where individual functions typically have preconditions imposed on their inputs. Conventional symbolic execution cannot detect these preconditions, let alone converting these preconditions into constraints. To overcome these limitations, we propose a novel unit test data generation approach using rule-directed symbolic execution for dealing with functions with missing input preconditions. Rule-directed symbolic execution uses predefined rules to detect preconditions in the individual function, and generates constraints for inputs based on preconditions. We introduce implicit constraints to represent preconditions, and unify implicit constraints and program constraints into integrated constraints. Test data generated based on integrated constraints can explore previously unreachable code and help developers find more functional faults and logical faults. We have implemented our approach in a tool called CTS-IC, and applied it to real-world projects. The experimental results show that rule-directed symbolic execution can find preconditions (implicit constraints) automatically from an individual function. Moreover, the unit test data generated by our approach achieves higher coverage than similar tools and efficiently mitigates missing input preconditions problems in unit testing for individual functions. 展开更多
关键词 automated UNIT testing program CONSTRAINT SYMBOLIC EXECUTION STATIC analysis
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部