• Home
  • Search
  • Selective Feature-Sensitive Coverage for Conformance Testing of Programming Languages
  • https://doi.org/10.1145/3808231Copy DOI Icon

Selective Feature-Sensitive Coverage for Conformance Testing of Programming Languages

Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

The conformance testing of programming language implementations is crucial to support correct and consistent execution environments. Researchers often use coverage information in the mechanized language specification to generate or check the quality of conformance tests. Since specifications use inductive definitions to describe the semantics of language features, traditional graph coverage criteria for software can still be applied. However, they may not produce high-quality conformance tests because language implementations often have specialized execution paths for different features, even when their semantics descriptions use the same functions. Traditional graph coverage may not distinguish test requirements of such language features, degrading conformance testing quality. Similarly, it may not distinguish test requirements of different parts of the same language feature if their semantics use the same functions. We introduce feature-sensitive (FS) coverage as a novel coverage criterion for generating high-quality conformance tests for language implementations. The core idea is to enhance traditional graph coverage by incorporating the innermost enclosing language features. To further improve the quality of conformance tests, we extend this approach to feature-call-path-sensitive (FCPS) coverage and its \(k\) -limiting variant. To assess the effectiveness of the new coverage criteria, we apply them to the mechanized JavaScript specification for ES13 and extend JEST, a state-of-the-art JavaScript conformance test synthesizer. Using five coverage criteria, our tool synthesizes 237,981 conformance tests for ES13 in 50 hours. The tool detected 157 conformance bugs (45 in engines and 112 in transpilers), 139 confirmed by the developers, and 136 newly discovered bugs. However, a higher \(k\) value may lead to an excessive number of tests. To resolve this issue, we present a selective FS/FCPS that utilizes the key feature stacks for the target language implementation. The selective approach for transpiler conformance testing with ECMA-262 for ES15 successfully reduces the number of synthesized tests by 70.7% on average. Still, it detects 53 bugs compared to 57 bugs detected by the non-selective approach.

Similar Papers
  • Conference Article
  • Citations2

Research and practice on testing tunnel protocol

  • Sep 21, 2003
  • Ling Zhou +4
  • Book Chapter
  • Citations23

Empirical Evaluation on FBD Model-Based Test Coverage Criteria Using Mutation Analysis

  • Jan 01, 2012
  • Donghwan Shin +2
  • PDF
  • Book Chapter
  • Citations2

Conformance Testing with Respect to Partial-Order Specifications

  • Jan 01, 2016
  • Gregor Von Bochmann
  • Research Article
  • Citations9

Performance assessment of sewage treatment plants using compliance index

  • Jun 01, 2022
  • Journal of Water, Sanitation and Hygiene for Development
  • D Ramkumar +2
  • Conference Article
  • Citations126

High-level small-step operational semantics for transactions

  • Jan 07, 2008
  • Katherine F Moore +1
  • Research Article
  • Citations33

Modular language implementation in Rascal – experience report

  • Nov 10, 2015
  • Science of Computer Programming
  • Bas Basten +8
  • Conference Article
  • Citations1

Asynchronous testing of real-time systems

  • Mar 26, 2017
  • EPiC series in computing
  • Puneet Bhateja
  • Conference Article
  • Citations31

Conformance testing of protocols specified as communicating FSMs

  • Mar 28, 1993
  • D Lee +4
  • Book Chapter

An Evaluation of Current Approaches to Support Test Coverage Analysis

  • Jan 01, 2011
  • Muhammad Shahid +2
  • Conference Article
  • Citations1

FOZCIL: A framework for converting formal specifications in Object-Z to design contracts in OO programming languages

  • Aug 01, 2011
  • Nixon Sunny George +2
  • Research Article
  • Citations4

Investigating the Quality and Conformity of Carbon Steel AISI 1035 under Varying Heat Treatment Conditions

  • Jan 01, 2019
  • Procedia Manufacturing
  • I.A Daniyan +3
  • Research Article
  • Citations17

Test case generation, selection and coverage from natural language

  • Jan 11, 2019
  • Science of Computer Programming
  • Sidney Nogueira +4
  • Research Article
  • Citations29

Controlling test case explosion in test generation from B formal models

  • Jan 20, 2004
  • Software Testing, Verification and Reliability
  • Bruno Legeard +2
  • Research Article

Software testing for peer-to-peer systems: Challenges and the state-of-the-art

  • Feb 14, 2025
  • Journal of Software Engineering Research and Development
  • Bruno E R Garcia +1
  • Book Chapter
  • Citations11

Relating conformance test coverage to formal specifications

  • Jan 01, 1996
  • Roland Groz +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.