RUS  ENG
Full version
JOURNALS // Sistemy i Sredstva Informatiki [Systems and Means of Informatics] // Archive

Sistemy i Sredstva Inform., 2014 Volume 24, Issue 2, Pages 99–113 (Mi ssi347)

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

DOI: 10.14357/08696527140207



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2025