• Home
  • Search
  • Code Coverage Criteria for Asynchronous Programs
  • Open Access IconOpen Access
  • Cite Icon2
  • https://doi.org/10.1145/3611643.3616292Copy DOI Icon

Code Coverage Criteria for Asynchronous Programs

  • Nov 30, 2023
  • Mohammad Ganji +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Asynchronous software often exhibits complex and error-prone behaviors that should be tested thoroughly. Code coverage has been the most popular metric to assess test suite quality. However, traditional code coverage criteria do not adequately reflect completion, interactions, and error handling of asynchronous operations. This paper proposes novel test adequacy criteria for measuring: (i) completion of asynchronous operations in terms of both successful and exceptional execution, (ii) registration of reactions for handling both possible outcomes, and (iii) execution of said reactions through tests. We implement JScope, a tool for automatically measuring coverage according to these criteria in JavaScript applications, as an interactive plug-in for Visual Studio Code. An evaluation of JScope on 20 JavaScript applications shows that the proposed criteria can help improve assessment of test adequacy, complementing traditional criteria. According to our investigation of 15 real GitHub issues concerned with asynchrony, the new criteria can help reveal faulty asynchronous behaviors that are untested yet are deemed covered by traditional coverage criteria. We also report on a controlled experiment with 12 participants to investigate the usefulness of JScope in realistic settings, demonstrating its effectiveness in improving programmers’ ability to assess test adequacy and detect untested behavior of asynchronous code.

Similar Papers
  • Book Chapter
  • Citations2

BTestBox: A Tool for Testing B Translators and Coverage of B Models

  • Jan 01, 2019
  • Diego De Azevedo Oliveira +3
  • Conference Article
  • Citations3

An Empirical Study on Effects of Code Visibility on Code Coverage of Software Testing

  • May 01, 2015
  • Lei Ma +3
  • Research Article

The Effectiveness of an Enhanced Weighted Method with a Unique Priority Value for Test Case Prioritization in Regression Testing

  • Dec 09, 2018
  • International Journal of Engineering & Technology
  • Asmaa Ammar +3
  • Research Article
  • Citations2

Can operational profile coverage explain post‐release bug detection?

  • Jun 01, 2020
  • Software Testing, Verification and Reliability
  • Lucas Andrade +2
  • Conference Article
  • Citations4

On factors that impact the relationship between code coverage and test suite effectiveness: a survey

  • Apr 01, 2023
  • Maryam Barani +2
  • Research Article
  • Citations3

An empirical study of test generation with BETA

  • Oct 28, 2016
  • Journal of the Brazilian Computer Society
  • Ernesto C B De Matos +2
  • Conference Article

Selection of Graph and Logic Expression Coverage Criteria for safety critical systems

  • Dec 01, 2010
  • I Udayakumara +1
  • Conference Article
  • Citations4

Model-Based Testing of Infotainment Systems on the Basis of a Graphical Human-Machine Interface

  • Aug 01, 2010
  • Linshu Duan +2
  • Research Article

IGTG&R: An Intent Analysis-Guided Unit Test Generation and Refinement Framework

  • Jan 09, 2026
  • Entropy
  • Xiaojian Liu +1
  • Conference Article
  • Citations18

A Comparison of Inquiry-Based Conceptual Feedback vs. Traditional Detailed Feedback Mechanisms in Software Testing Education: An Empirical Investigation

  • Mar 03, 2021
  • Lucas Cordova +3
  • Book Chapter

Environment Setup

  • Jan 01, 2022
  • Ivan Harris
  • Research Article

Rancang Bangun Sistem Informasi dan Penjualan Aksesoris Komputer Berbasis Web Pada Toko Sarjana Komputer

  • Feb 28, 2025
  • Jurasik (Jurnal Riset Sistem Informasi dan Teknik Informatika)
  • Muhammad Arbiter Syahrul Romadhoni +2
  • Conference Article
  • Citations3

Comparing Model Coverage and Code Coverage in Model Driven Testing: An Exploratory Study

  • Nov 01, 2015
  • Domenico Amalfitano +3
  • Research Article
  • Citations9

Analysing the effectiveness of rule-coverage as a reduction criterion for test suites of grammar-based software

  • May 07, 2008
  • Empirical Software Engineering
  • Mark Hennessy +1
  • Conference Article
  • Citations2

On the correctness of GPU programs

  • Jul 10, 2019
  • Chao Peng
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.