350 rub
Journal Science Intensive Technologies №4 for 2014 г.
Article in number:
Using of unit tests for software modification
Authors:
А.V. Gavrilov - Ph.D. (Eng.), STC "Altair" JSC "MSDB "Almaz-Antey?. E-mail: gavrilov-alekcei@yandex.ru
Abstract:
In present work we describe development of Unit-testing library xUnitTest++ for modification of existing software. Main difference of library xUnitTest++ from similar Unit-testings libraries is its feature of recording tests in XML format files. This feature allows to refuse from writing numerical tests inside program source code and helps to use early created tests in new software, that dramatically minimize test created time, especially in case of test data with many different attributes. In xUnitTest++ library we use new special test strategy together with classical unit-testing strategy. By this strategy developer creates additional procedure of input and output module data recoding for each old source code module until old source code modification; then modules as part of the main program are executed; at this moment XML etalon test files are recorded. When developer will modificate source code, he will run these created tests. If errors would fire, developer make corrections of errors either in test files in case of results of program must change or in text of modificated program in case of modifications are notcorrected and results must be unchanged.
Pages: 82-85
References

  1. Bek K. E'kstremal'noe programmirovanie. SPb: Piter. 2003
  2. Biblioteka unit-testov Unitest-cpp. http://unittest-cpp.sourceforge.net.
  3. Biblioteka raboty s xml Tinyxml. http://www.sourceforge.net/projects/tinyxml.