[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-497297-en":3,"doc-seo-497297-105":51,"detail-sidebar-cat-0-en-105":116},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30,"preview_page_count":31,"preview_urls":32},497297,962088121634,"supergirl","https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc",8,"Research & Report","Empirically Revisiting the Test Independence Assumption","Test independence requires that every test case in a suite be unaffected by others and that any execution order yields identical results. This work challenges the rarely examined assumption underlying common techniques such as test prioritization, selection, execution, and debugging. It studies dependent behavior in 96 real-world tests from five issue tracking systems, formalizes dependence on ordered test sequences with explicit environments, and develops detection algorithms validated on four programs and assessed across five prioritization methods.","Empirically Revisiting the Test Independence Assumption  \nSai Zhang, Darioush Jalali, Jochen Wuttke, Kıvanç Mu¸slu, Wing Lam, Michael D. Ernst, David Notkin  \nDepartment of Computer Science & Engineering  \nUniversity of Washington, Seattle, USA  \n{szhang, darioush, wuttke, kivanc, winglam, [mernst}@cs.washington.edu](mernst}@cs.washington.edu)  \nABSTRACT  \nIn a test suite, all the test cases should be independent: no test should aﬀect any other test’s result, and running the tests in any order should produce the same test results. Test independence is important so that tests behave consistently as intended by the developers. In addition, techniques such as test prioritization assume that the tests in a suite are independent, but they do not justify that assumption. Test dependence is a little-studied phenomenon. This paper presents ﬁve results related to test dependence.  \nFirst, we characterize the test dependence that arises in practice. We studied 96 real-world dependent tests from 5 issue tracking systems. Our study shows that test dependence can be hard for programmers to identify. It also shows that test dependence can cause non-trivial consequences, such as masking program faults and leading to spurious bug reports.  \nSecond, we formally deﬁne test dependence in terms of test suites as ordered sequences of tests along with explicit environments in which these tests are executed. We formulate the problem of detecting dependent tests and prove that a useful special case is NP-complete.  \nThird, guided by the study of real-world dependent tests, we propose and compare three algorithms to detect dependent tests in a test suite.  \nFourth, we applied our dependent test detection algorithms to 4 real-world programs and found dependent tests in each human-written and automatically-generated test suite.  \nFifth, we empirically assessed the impact of dependent tests on ﬁve test prioritization techniques and found that dependent tests aﬀect the output of all ﬁve techniques.  \n1. INTRODUCTION  \nConsider a test suite containing two tests A and B, where running A and then B leads to A passing, while running B and then A leads to A failing. We call A an order-dependent test (in the context of this test suite), since its result depends on whether it runs after B or not.  \nIn a test suite, all the test cases should be independent: no test should aﬀect any other test’s result, and running the tests in any order should produce the same test results. The assumption of test independence is important so that tests behave consistently as designed. In addition, many techniques assume test independence, including test prioritization [19,29,47,51], test selection [6,22,25,39,40,64], test execution [36, 37], test factoring [48, 60], test carving [18], and experimental debugging techniques [52,62,65] . However, this critical assumption is rarely questioned, investigated, or even mentioned: none of the above papers mentions the assumption as a limitation or a threat to validity. A total of  \n31 papers on test prioritization have been published in the research track of ﬁve major software engineering conferences (ICSE, FSE, ISSTA, ASE, and ICST) or in two major software engineering journals (TOSEM and TSE) between 2000 and 2013 [68] . Of these, 27 papers explicitly or implicitly assumed test independence, 3 papers acknowledged that the potential dependences between tests may aﬀect the prioritization output [35,42,45], and only 1 paper considered test dependence in the design of test prioritization algorithms [16] . Anecdotally, researchers have told us that test dependence is not a signiﬁcant concern in practice. We wish to investigate the validity of this unveriﬁed conventional wisdom, in order to understand whether test dependence arises in practice, the repercussions of dependent tests, and how to detect dependent tests.  \n1.1 Manifest Test Dependence  \nThis paper focuses on test dependence that manifests as adiﬀerence in test result (i.e., passin","cbCaiucEJGd5T9vc","https://ap.wps.com/l/cbCaiucEJGd5T9vc","pdf",527164,13,1,12,"English","en",105,"# Abstract\n# Introduction\n## Manifest Test Dependence\n## Causes and Repercussions","[{\"question\":\"What does test independence mean in a test suite?\",\"answer\":\"All test cases should be independent so that no test affects another test’s result, and running tests in any order produces the same outcomes.\"},{\"question\":\"How does the paper characterize manifest test dependence?\",\"answer\":\"A test is manifestly dependent if there exists a reordered subsequence where the test’s oracle-based result differs from its expected result under the default execution order.\"},{\"question\":\"What practical impact do dependent tests have according to the study?\",\"answer\":\"The study finds dependent tests are difficult to identify and can mask program faults and lead to spurious bug reports, affecting the output of multiple test prioritization techniques.\"}]","Empirically Revisiting the Test Independence Assumption | PDF",1790951358,30,4,[33,37,42,47],{"page_no":21,"url":34,"width":35,"height":36},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/520dd3f590352dbdc3b4ce5e3c1c552c.webp",983,1390,{"page_no":38,"url":39,"width":40,"height":41},2,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f57bbcbdb437257fdd11cc8dc1d2f5c4.webp",982,1388,{"page_no":43,"url":44,"width":45,"height":46},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c11b94b8854b11066050ad75f784db3c.webp",981,1387,{"page_no":31,"url":48,"width":49,"height":50},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d73a4a727e8b9ec68d4a5120427df4e9.webp",980,1385,{"code":4,"msg":52,"data":53},"ok",{"site_id":25,"language":24,"slug":54,"title":13,"keywords":55,"description":14,"schema_data":56,"social_meta":110,"head_meta":112,"extra_data":114,"updated_unix":115},"empirically-revisiting-the-test-independence-assumption","",{"@graph":57,"@context":109},[58,72,92],{"@type":59,"itemListElement":60},"BreadcrumbList",[61,65,68,70],{"item":62,"name":63,"@type":64,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":66,"name":67,"@type":64,"position":38},"https://docshare.wps.com/document/","Document",{"item":69,"name":12,"@type":64,"position":43},"https://docshare.wps.com/document/research-report/",{"item":71,"name":13,"@type":64,"position":31},"https://docshare.wps.com/document/empirically-revisiting-the-test-independence-assumption/497297/",{"url":71,"name":13,"@type":73,"image":74,"author":79,"headline":13,"publisher":81,"fileFormat":84,"inLanguage":24,"description":14,"dateModified":85,"datePublished":86,"encodingFormat":84,"isAccessibleForFree":87,"interactionStatistic":88},"DigitalDocument",{"url":75,"@type":76,"width":77,"height":78},"https://docshare.wps.com/thumbnails/empirically-revisiting-the-test-independence-assumption/497297.png","ImageObject",300,407,{"name":9,"@type":80},"Person",{"url":62,"name":82,"@type":83},"DocShare","Organization","application/pdf","2026-11-16","2026-10-02",true,{"@type":89,"interactionType":90,"userInteractionCount":20},"InteractionCounter",{"@type":91},"ViewAction",{"@type":93,"mainEntity":94},"FAQPage",[95,101,105],{"name":96,"@type":97,"acceptedAnswer":98},"What does test independence mean in a test suite?","Question",{"text":99,"@type":100},"All test cases should be independent so that no test affects another test’s result, and running tests in any order produces the same outcomes.","Answer",{"name":102,"@type":97,"acceptedAnswer":103},"How does the paper characterize manifest test dependence?",{"text":104,"@type":100},"A test is manifestly dependent if there exists a reordered subsequence where the test’s oracle-based result differs from its expected result under the default execution order.",{"name":106,"@type":97,"acceptedAnswer":107},"What practical impact do dependent tests have according to the study?",{"text":108,"@type":100},"The study finds dependent tests are difficult to identify and can mask program faults and lead to spurious bug reports, affecting the output of multiple test prioritization techniques.","https://schema.org",{"og:url":71,"og:type":111,"og:title":13,"og:site_name":82,"og:description":14},"article",{"robots":113,"canonical":71},"index,follow",{"doc_id":7,"site_id":25},1791072021,{"code":4,"msg":5,"data":117},[118,122,126,130,135,140,145,147,152,155,159],{"id":21,"doc_module":4,"doc_module_name":67,"category_name":119,"show_sort_weight":120,"slug":121},"Story & Novel",90,"story-novel",{"id":38,"doc_module":4,"doc_module_name":67,"category_name":123,"show_sort_weight":124,"slug":125},"Literature",80,"literature",{"id":31,"doc_module":4,"doc_module_name":67,"category_name":127,"show_sort_weight":128,"slug":129},"Exam",70,"exam",{"id":131,"doc_module":4,"doc_module_name":67,"category_name":132,"show_sort_weight":133,"slug":134},5,"Comic",60,"comic",{"id":136,"doc_module":4,"doc_module_name":67,"category_name":137,"show_sort_weight":138,"slug":139},6,"Technology",50,"technology",{"id":141,"doc_module":4,"doc_module_name":67,"category_name":142,"show_sort_weight":143,"slug":144},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":67,"category_name":12,"show_sort_weight":30,"slug":146},"research-report",{"id":148,"doc_module":4,"doc_module_name":67,"category_name":149,"show_sort_weight":150,"slug":151},9,"Religion & Spirituality",20,"religion-spirituality",{"id":150,"doc_module":4,"doc_module_name":67,"category_name":153,"show_sort_weight":150,"slug":154},"World Cup","world-cup",{"id":156,"doc_module":4,"doc_module_name":67,"category_name":157,"show_sort_weight":156,"slug":158},10,"Lifestyle","lifestyle",{"id":160,"doc_module":4,"doc_module_name":67,"category_name":161,"show_sort_weight":131,"slug":162},19,"General","general"]