|
Source code and partial specifications analysis for automated generation of unit tests
A. Andrianova, V. Itsykson St. Petersburg State Polytechnical University, 29 Polytechnicheskaya Str., St. Petersburg 195251, Russian Federation
Abstract:
Low level of software quality is one of the main problems of software engineering. Automated testing is one of the most effective strategies used to improve the quality of the software. This paper describes a technique of automated unit tests creation combining both functional and structural approaches of software testing. In this method, information extracted from the original program is used to ensure test coverage of program paths. Partial specifications given in the form of contracts are used to form test oracles and to distribute parameters of tests on definition domain. The developed approach was implemented as a tool that analyzes Java programs and generates test cases for class methods in JUnit format, using CoFoJa to specify the contracts. Designed tool testing on a number of test cases showed efficiency of the approach.
Keywords:
automated software testing; unit test generating; contract-based programming; code analysis; SMT-solver.
Received: 29.01.2014
Citation:
A. Andrianova, V. Itsykson, “Source code and partial specifications analysis for automated generation of unit tests”, Sistemy i Sredstva Inform., 24:2 (2014), 99–113
Linking options:
https://www.mathnet.ru/eng/ssi347 https://www.mathnet.ru/eng/ssi/v24/i2/p99
|
Statistics & downloads: |
Abstract page: | 288 | Full-text PDF : | 156 | References: | 45 |
|