Title :
A Parameterized Unit Test Framework Based on Symbolic Java PathFinder
Author :
Truong, Anh-Hoang ; Vu, Thanh-Nhan
Author_Institution :
Coll. of Technol., Vietnam Nat. Univ., Hanoi, Vietnam
Abstract :
Parameterized unit test recently gains a lot of attention as it saves testing cost and is more efficient in term of code coverage. We present a framework for running parameterized unit tests (PUT) based on Java PathFinder (JPF) and JUnit. Our approach bases on model checking and symbolic execution of JPF for generating standard unit tests. As a result, we achieve high structural and path coverage. The generated unit tests are automatically executed by JUnit so programmers receive immediately assertion failures if any. Currently, our approach mainly works with numeric and boolean data type but it is possible to extend our framework for other data types such as string.
Keywords :
Java; program testing; program verification; JUnit; boolean data type; model checking; parameterized unit test framework; standard unit tests; symbolic Java PathFinder; symbolic execution; Automatic testing; Costs; Educational institutions; Java; Knowledge engineering; Programming profession; Software testing; State-space methods; System testing; Systems engineering and theory; Parameterized Unit Test; Testing;
Conference_Titel :
Knowledge and Systems Engineering, 2009. KSE '09. International Conference on
Conference_Location :
Hanoi
Print_ISBN :
978-1-4244-5086-2
Electronic_ISBN :
978-0-7695-3846-4
DOI :
10.1109/KSE.2009.47