Initial Results on Counting Test Orders for Order-Dependent Flaky Tests Using Alloy

Wenxi Wang, Pu Yi, Sarfraz Khurshid, Darko Marinov

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Flaky tests can seemingly nondeterministically pass or fail for the same code under test. Flaky tests are detrimental to regression testing because tests that pass before code changes and fail after code changes do not reliably indicate problems in code changes. An important category of flaky tests is order-dependent tests that pass or fail based on the order of tests in the test suite. Prior work has considered the problem of counting test orders that pass or fail, given relationships of tests within a test suite. However, prior work has not addressed the most general case of these relationships. This paper shows how to encode the problem of counting test orders in the Alloy modeling language and how to use propositional model counters to obtain the count for test orders. We illustrate that Alloy makes it easy to handle even the most general case. The results show that this problem produces challenging propositional formulas for the state-of-the-art model counters.

Original languageEnglish (US)
Title of host publicationTesting Software and Systems - 33rd IFIP WG 6.1 International Conference, ICTSS 2021, Proceedings
EditorsDavid Clark, Hector Menendez, Ana Rosa Cavalli
PublisherSpringer
Pages123-130
Number of pages8
ISBN (Print)9783031046728
DOIs
StatePublished - 2022
Event33rd IFIP WG 6.1 International Conference on Testing Software Systems, ICTSS 2021 - Virtual, Online
Duration: Nov 10 2021Nov 12 2021

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13045 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference33rd IFIP WG 6.1 International Conference on Testing Software Systems, ICTSS 2021
CityVirtual, Online
Period11/10/2111/12/21

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Initial Results on Counting Test Orders for Order-Dependent Flaky Tests Using Alloy'. Together they form a unique fingerprint.

Cite this