[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-496687-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-496687-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","cost-of-flaky-tests-in-continuous-integration-an-industrial-case-study","Cost of Flaky Tests in Continuous Integration - An Industrial Case Study","","Researchers and practitioners increasingly regard flaky tests as a major obstacle in software engineering, yet the industrial costs and their distribution across Continuous Integration (CI) processes remain insufficiently understood. This study compiles cost factors from research and practice, builds a cost model, and evaluates it in a large commercial CI project with about 30 developers and roughly 1M SLoC. Analysis of five years of CI logs, commits, issue tickets, and work time shows at least 2.5% of productive developer time is spent dealing with flaky tests, with rerunning costs remaining negligible.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/cost-of-flaky-tests-in-continuous-integration-an-industrial-case-study/496687/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/cost-of-flaky-tests-in-continuous-integration-an-industrial-case-study/496687.png","ImageObject",300,407,{"name":42,"@type":43},"Maya Linwood","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-02",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does the study address about flaky tests in CI?","Question",{"text":63,"@type":64},"The study addresses where and to what extent flaky tests create costs within industrial CI development processes. It focuses on quantifying those costs rather than only describing the lifecycle qualitatively.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How is the cost of flaky tests modeled in this research?",{"text":68,"@type":64},"The authors compile cost factors from research and practice, synthesize them into a cost model, and then instantiate the model in a case study. The model is validated by analyzing CI logs, version control commits, issue tickets, and tracked work time.",{"name":70,"@type":61,"acceptedAnswer":71},"What are the main cost findings from the industrial case study?",{"text":72,"@type":64},"Dealing with flaky tests accounts for at least 2.5% of productive developer time in the studied project. The time is split across investigating potentially flaky failures (1.1%), repairing flaky tests (1.3%), and developing monitoring tools (0.1%), while automatically rerunning tests is negligible in the authors’ context.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},496687,1792186565,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":113,"preview_page_count":33,"preview_urls":145},962084928432,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Cost of Flaky Tests in Continuous Integration: An Industrial Case Study  \nFabian Leinen  \nTechnical University of Munich Munich, Germany  \nDaniel Elsner  \nTechnical University of Munich Munich, Germany  \nAlexander Pretschner  \nTechnical University of Munich Munich, Germany  \nAndreas Stahlbauer  \nCQSE GmbH Munich, Germany  \nMichael Sailer  \nCQSE GmbH Munich, Germany  \nElmar J¨urgens  \nCQSE GmbH Munich, Germany  \nAbstract—Researchers and practitioners alike increasingly often perceive flaky tests as a major challenge in software engineering. They spend a lot of effort trying to detect, repair, and mitigate the negative effects of flaky tests. However, it is yet unclear where and to what extent the costs of flaky tests manifest in industrial Continuous Integration (CI) development processes.  \nIn this study, we compile cost factors introduced by flaky tests in CI development from research and practice and derive a cost model that allows gaining insight into the costs incurred. We then instantiate this model in a case study of a large, commercial software project with ∼30 developers and ∼1M SLoC. We analyze five years of development history, including CI test logs, commits from the Version Control System (VCS), issue tickets, and tracked work time to quantify the cost factors implied by flaky tests. We find that the time spent dealing with flaky tests in the studied project represents at least 2.5% of the productive developer time. This effort is divided into investigating potentially flaky test failures, which accounts for 1.1% of the total time spent, repairing flaky tests adds another 1.3%, and developing tools to monitor flaky tests adds 0.1% . Contrary to most other studies, we find the cost for rerunning tests to be negligible and inexpensive. Automatically rerunning a test costs 0.02 cents, while not rerunning and thus letting the pipeline fail results in a manual investigation costing $5.67 in our context. The insights gained from our case study have led to the decision to shift effort from investigation and repair to automatically rerunning tests.  \nOur cost model can help practitioners analyze the cost of flaky tests in their context and make informed decisions. Furthermore, our case study provides a first step to better understand the costs of flaky tests, which can lead researchers to industry-relevant problems.  \nIndex Terms—flaky tests, continuous integration, regression testing, cost modeling, industrial case study  \nI. INTRODUCTION  \nRegression testing is a testing activity commonly performed in CI environments to ensure that introduced changes do not break existing system behavior [1, 2, 3] . The developers’ trust in the correctness of the software depends on the reliability of test results [4] . A test case that shows different test results on two different occasions yet with identical environmental factors (for example, the same code under test) is commonly referred to asa flaky test [5] . According to recent developer surveys [6, 7, 8] and industrial studies [4, 5, 9], flaky tests are a growing problem in regression testing and a major source of development  \ncosts [10, 11] . Microsoft [4] and Google [10], for instance, report 4%–16% of tests to involve flakiness and 1.5% of CItest runs to be flaky. Therefore, researchers and practitioners invest a lot of effort to understand flaky tests [12, 13] and to mitigate their negative impacts by automatically detecting flaky tests [14, 15, 16], determining their root causes [4, 17, 18], and repairing them [19, 20] .  \nThe existing studies either provide a qualitative overview of the life cycle of flaky tests [12, 14, 21, 22, 23, 24, 25, 26, 27, 28] or technical solutions for one phase of the lifecycle [15, 16, 17, 18, 29, 30, 31, 32, 33, 34, 35] . However, it is unclear how different phases contribute to the overall cost of flaky tests in CI development processes.  \nIn this study, we analyze and quantify the factors driving the cost behind flaky tests in industry-scale","cbCaiuF5Hnnhf2mH","https://ap.wps.com/l/cbCaiuF5Hnnhf2mH","pdf",345777,12,"English","# Introduction\n## Problem background and motivation\n## Related work and research gap\n## Study approach and objectives\n# Case study setup and cost quantification","[{\"question\":\"What problem does the study address about flaky tests in CI?\",\"answer\":\"The study addresses where and to what extent flaky tests create costs within industrial CI development processes. It focuses on quantifying those costs rather than only describing the lifecycle qualitatively.\"},{\"question\":\"How is the cost of flaky tests modeled in this research?\",\"answer\":\"The authors compile cost factors from research and practice, synthesize them into a cost model, and then instantiate the model in a case study. The model is validated by analyzing CI logs, version control commits, issue tickets, and tracked work time.\"},{\"question\":\"What are the main cost findings from the industrial case study?\",\"answer\":\"Dealing with flaky tests accounts for at least 2.5% of productive developer time in the studied project. The time is split across investigating potentially flaky failures (1.1%), repairing flaky tests (1.3%), and developing monitoring tools (0.1%), while automatically rerunning tests is negligible in the authors’ context.\"}]","Cost of Flaky Tests in Continuous Integration - An Industrial Case Study | PDF",1790938135,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2c14203963bafa7f9e4cd64467f58f8c.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/bac2707d6b30a5f0bc9d2811c0baa9fe.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/02c358e1ba9db1f47b182d187a9e6933.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/00e86c858bafad4fadc2b621e78fccfb.webp",980,1268]