Explore how IntelliGame, a gamification plugin for IntelliJ, impacts JavaScript unit testing in a controlled experiment with 152 participants.
Authors: Philipp Straubinger, University of Passau, Passau, Germany and this author contributed equally to this research; Tommaso Fulcini, Politecnico di Torino, Torino, Italy and this author contributed equally to this research; Gordon Fraser, University of Passau, Passau, Germany; Marco Torchiano, Politecnico di Torino, Torino, Italy.
Table of Links Abstract and Introduction Background and Related Work Implementation Experiment Results Conclusions, Acknowledgement, and References 3 IMPLEMENTATION To enable JavaScript support in IntelliGame, we transitioned from using IntelliJ Community Edition to IntelliJ Ultimate. This shift was necessary because JavaScript support is exclusively available in the latter. While we managed to adapt most of the existing test achievements for JavaScript, some proved challenging to port, and a few were even deemed impossible. Adjusting for test execution tracking, such as the number of tests and assertions, was straightforward, thanks to the Jest testing framework’s syntax. However, obtaining coverage information posed a greater challenge. The built-in test engine of IntelliJ lacks the same coverage details for JavaScript as it does for Java, such as covered branches or methods. To address this, we devised a specialized test execution configuration that utilizes Jest to output overall coverage information to the console. We extract and employ this information for our achievements. Additionally, Jest writes coverage details to a JSON file, offering comprehensive class-specific information that we leverage for the remaining achievements. In summary, we extract JavaScript coverage information from three sources: the built-in test engine, the console, and summary files. Another obstacle arose with the JavaScript debugger, which lacks support for method breakpoints and field watchpoints, required by the implementation of some of the achievements. Unfortunately, we could not find suitable alternatives for these features. Similarly, most of the refactoring-related achievements, implemented using RefactoringMiner for Jav, lacked equivalent tools for JavaScript. Despite facing challenges, we successfully transferred 19 achievements out of 26 from Java to JavaScript. These achievements can be identified by a small JavaScript symbol . Each achievement is represented by a trophy indicating the level, a progress bar showing the current progress towards the next level, and a description detailing the progress required for reaching the next level, accessible by hovering over the question mark. For further details and explanations of the achievements, refer to related work . This paper is under CC BY-SA 4.0 DEED license. available on arxiv https://www.jetbrains.com/products/compare/?product=idea&product=idea-ce https://jestjs.io/ https://github.com/tsantalis/RefactoringMiner
United States Latest News, United States Headlines
Similar News:You can also read news stories similar to this one that we have collected from other news sources.
10 Spider-Man: The Animated Series Characters Better Than The Live-Action MoviesAll the latest movie news, movie trailers & reviews - and the same for TV, too.
Read more »
How to Train Your Dragon Star Teases Live-Action Adaptation’s Practical SetsDeadpool 2 star Julian Dennison discussed his experience filming Universal Pictures' upcoming live-action How to Train Your Dragon movie.
Read more »
‘Immediate Action’ Needed On Racially Biased Medical Devices In U.K.I'm a former correspondent for award-winning health policy publication, the Health Service Journal. My work exposing PPE shortages in hospitals during the pandemic was recognized as 'Excellence in Reporting Coronavirus' by Press Gazette. I've been a journalist for seven years and have also written for Newsweek and Metro.co.uk.
Read more »
Action-packed Film Showcasing Director's Skillset and Rising Action StarA film directed by Patel showcases his skillset as a director and introduces him as a rising action star. The film follows a mysterious young man on a revenge mission who infiltrates a sex club to uncover the murderer of a loved one. The action sequences are intense and filled with violence, filmed in a way that gives the audience a front row seat to the action. The film's South Korean influence is evident in its thrilling and messy nature. Patel's direction cleverly balances the intensity with comedy.
Read more »
JavaScript Libraries for Implementing Trendy Technologies in Web Apps in 2024In this article, you will get acquainted with JavaScript libraries that can help you implement trendy functionalities into your web project.
Read more »
Eesee's CEO Vova Sadkov on Gamifying Digital Asset TradingMr. Sadkov, the company's CEO, recently sat down for an interview to discuss the potential of gamified trading and the challenges it presents.
Read more »
