Home // International Journal On Advances in Software, volume 8, numbers 1 and 2, 2015 // View article


Automated Unit Testing of JavaScript Code through Symbolic Executor SymJS

Authors:
Hideo Tanida
Guodong Li
Indradeep Ghosh
Tadahiro Uehara

Keywords: JavaScript; test generation; symbolic execution; symbolic stub and driver generation.

Abstract:
JavaScript is expected to be a programming language of even wider use, considering demands for more interactive web/mobile applications and deployment in server-side software. While reliability of JavaScript code will be of more importance, testing techniques for the language remain insufficient, compared to other languages. We propose a technique to automatically generate high-coverage unit tests for JavaScript code. The technique makes use of symbolic execution engine for JavaScript, and symbolic stub/driver generation engine, which injects symbolic variables to system under test. Our methodology allows for automatic generation of input data for unit testing of JavaScript code with high coverage, which ensures quality of target code with reduced effort.

Pages: 146 to 155

Copyright: Copyright (c) to authors, 2015. Used with permission.

Publication date: June 30, 2015

Published in: journal

ISSN: 1942-2628