DocumentCode :
3762340
Title :
Unit test code generator for lua programming language
Author :
Junno Tantra Pratama Wibowo;Bayu Hendradjaya;Yani Widyani
Author_Institution :
School of Electrical Engineering and Informatics, Institut Teknologi Bandung, Bandung, Indonesia
fYear :
2015
Firstpage :
241
Lastpage :
245
Abstract :
Software testing is an important step in the software development lifecycle. One of the main process that take lots of time is developing the test code. We propose an automatic unit test code generation to speed up the process and helps avoiding repetition. We develop the unit test code generator using Lua programming language. Lua is a fast, lightweight, embeddable scripting language. It has been used in many industrial applications with focuses on embedded systems and games. Unlike other popular scripting language like JavaScript, Python, and Ruby, Lua does not have any unit test generator developed to help its software testing process. The final product, Lua unit test generator (LUTG), integrated to one of the most popular Lua IDE, ZeroBrane Studio, as a plugin to seamlessly connect the coding and testing process. The code generator can generate unit test code, save test cases data on Lua and XML file format, and generate the test data automatically using search-based technique, genetic algorithm, to achieve full branch coverage test criteria. Using this generator to test several Lua source code files shows that the developed unit test generator can help the unit testing process. It was expected that the unit test generator can improve productivity, quality, consistency, and abstraction of unit testing process.
Keywords :
"Generators","Software testing","Genetic algorithms","Software engineering","Software","XML"
Publisher :
ieee
Conference_Titel :
Data and Software Engineering (ICoDSE), 2015 International Conference on
Print_ISBN :
978-1-4673-8428-5
Type :
conf
DOI :
10.1109/ICODSE.2015.7437005
Filename :
7437005
Link To Document :
بازگشت