JS-TOD: Detecting order-dependent flaky tests in Jest

Loading...
Thumbnail Image

DOI

Open Access Location

Journal Title

Journal ISSN

Volume Title

Publisher

Elsevier B V

Rights

(c) The author/s
CC BY 4.0

Abstract

We present JS-TOD (J ava S cript T est O rder-dependency D etector), a tool that can extract, reorder, and rerun Jest tests to reveal possible order-dependent test flakiness. Test order dependency is one of the leading causes of test flakiness. Ideally, each test should operate in isolation and yield consistent results no matter the sequence in which tests are run. However, in practice, test outcomes can vary depending on their execution order. JS-TOD employed a systematic approach to randomising tests, test suites, and describe blocks. The tool is highly customisable, as one can set the number of orders and reruns required (the default setting is 10 reorder and 10 reruns).

Description

Citation

Hashemi N, Tahir A, Rasheed S, Shi A, Blagojevic R. (2026). JS-TOD: Detecting order-dependent flaky tests in Jest. Science of Computer Programming. 252.

Collections

Endorsement

Review

Supplemented By

Referenced By

Creative Commons license

Except where otherwised noted, this item's license is described as (c) The author/s