JS-TOD: Detecting order-dependent flaky tests in Jest
| dc.citation.volume | 252 | |
| dc.contributor.author | Hashemi N | |
| dc.contributor.author | Tahir A | |
| dc.contributor.author | Rasheed S | |
| dc.contributor.author | Shi A | |
| dc.contributor.author | Blagojevic R | |
| dc.date.accessioned | 2026-03-10T21:12:02Z | |
| dc.date.issued | 2026-07-01 | |
| dc.description.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). | |
| dc.description.confidential | false | |
| dc.edition.edition | July 2026 | |
| dc.identifier.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. | |
| dc.identifier.doi | 10.1016/j.scico.2026.103462 | |
| dc.identifier.eissn | 1872-7964 | |
| dc.identifier.elements-type | journal-article | |
| dc.identifier.issn | 0167-6423 | |
| dc.identifier.number | 103462 | |
| dc.identifier.pii | S0167642326000286 | |
| dc.identifier.uri | https://mro.massey.ac.nz/handle/10179/74269 | |
| dc.language | English | |
| dc.publisher | Elsevier B V | |
| dc.publisher.uri | https://www.sciencedirect.com/science/article/pii/S0167642326000286 | |
| dc.relation.isPartOf | Science of Computer Programming | |
| dc.rights | (c) The author/s | en |
| dc.rights.license | CC BY 4.0 | en |
| dc.rights.uri | https://creativecommons.org/licenses/by/4.0/ | en |
| dc.subject | Flaky tests | |
| dc.subject | Test order dependency | |
| dc.subject | JavaScript | |
| dc.subject | Jest | |
| dc.title | JS-TOD: Detecting order-dependent flaky tests in Jest | |
| dc.type | Journal article | |
| pubs.elements-id | 610053 | |
| pubs.organisational-group | Other |
