Efficient JavaScript Mutation Testing
Shabnam Mirshokraie,Ali Mesbah,Karthik Pattabiraman +2 more
- 18 Mar 2013
- pp 74-83
86
TL;DR: This paper proposes a technique that leverages static and dynamic program analysis to guide the mutation generation process a-priori towards parts of the code that are error-prone or likely to influence the program's output.
read more
Abstract: Mutation testing is an effective test adequacy assessment technique. However, it suffers from two main issues. First, there is a high computational cost in executing the test suite against a potentially large pool of generated mutants. Second, there is much effort involved in filtering out equivalent mutants, which are syntactically different but semantically identical to the original program. Prior work has mainly focused on detecting equivalent mutants after the mutation generation phase, which is computationally expensive and has limited efficiency. In this paper, we propose a technique that leverages static and dynamic program analysis to guide the mutation generation process a-priori towards parts of the code that are error-prone or likely to influence the program's output. Further, we focus on the JavaScript language, and propose a set of mutation operators that are specific to web applications. We implement our approach in a tool called MUTANDIS. We empirically evaluate MUTANDIS on a number of web applications to assess the efficacy of the approach.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
Mutation Testing Advances: An Analysis and Survey
Mike Papadakis,Marinos Kintis,Jie Zhang,Yue Jia,Yves Le Traon,Mark Harman +5 more
- 01 Jan 2019
TL;DR: This chapter presents a survey of recent advances, over the past decade, related to the fundamental problems of mutation testing and sets out the challenges and open problems for the future development of the method.
Web application testing: A systematic literature review
TL;DR: The results of this SLR can help researchers to obtain an overview of existing web application testing approaches, fault models, tools, metrics and empirical evidence, and subsequently identify areas in the field that require more attention from the research community.
124
BugsJS: a Benchmark of JavaScript Bugs
Péter Gyimesi,Bela Vancsics,Andrea Stocco,Davood Mazinanian,Arpad Beszedes,Rudolf Ferenc,Ali Mesbah +6 more
- 22 Apr 2019
TL;DR: BugsJS is proposed, a benchmark of 453 real, manually validated JavaScript bugs from 10 popular JavaScript server-side programs, comprising 444k LOC in total, which facilitates conducting highly-reproducible empirical studies and comparisons of JavaScript analysis and testing tools.
112
Leveraging existing tests in automated test generation for web applications
Amin Milani Fard,Mehdi Mirzaaghaei,Ali Mesbah +2 more
- 15 Sep 2014
TL;DR: This paper proposes to mine the human knowledge present in the form of input values, event sequences, and assertions, in the human-written test suites, and combine that inferred knowledge with the power of automated crawling, and extend the test suite for uncovered/unchecked portions of the web application under test.
99
References
Detecting equivalent mutants and the feasible path problem
A.J. Offutt,Jie Pan +1 more
- 17 Jun 1996
TL;DR: In this article, a technique that uses mathematical constraints to automatically detect equivalent mutant programs is presented, and a proof of concept implementation has been developed to demonstrate this technique, and experimental results from using this tool are presented.
Mutation testing—its origin and evolution
TL;DR: A brief review of the program testing technique known as ‘mutation testing’ is provided and current research directions in this area are outlined and it is suggested that this method may be one way to achieve the high reliability necessary in critical software.
JavaScript Errors in the Wild: An Empirical Study
Frolin S. Ocariza,Karthik Pattabiraman,Benjamin G. Zorn +2 more
- 29 Nov 2011
TL;DR: It is found that JavaScript errors occur in production web applications, and that the errors fall into a small number of categories.
Multi Objective Higher Order Mutation Testing with Genetic Programming
William B. Langdon,Mark Harman,Yue Jia +2 more
- 04 Sep 2009
TL;DR: It is shown that the use of a search based approach makes this scalable, seeking only those mutants that challenge the tester, while the consideration of complex faults addresses the problem of fault realism.
JSART: javascript assertion-based regression testing
Shabnam Mirshokraie,Ali Mesbah +1 more
- 23 Jul 2012
TL;DR: The results show that the proposed automated technique for JavaScript regression testing, based on on-the-fly JavaScript source code instrumentation and dynamic analysis to infer invariant assertions, is able to effectively generate stable assertions and detect JavaScript regression faults with a high degree of accuracy and minimal performance overhead.