[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496387-105":59,"doc-detail-496387-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","entropy-based-test-generation-for-improved-fault-localization","Entropy-Based Test Generation for Improved Fault Localization","","Spectrum-based Bayesian reasoning ranks candidate fault locations from test outcomes, yet diagnostic quality strongly depends on the underlying test suite’s size and diversity. In many real settings, test suites lack the properties needed for reliable rankings. This work presents ENTBUG, a method that extends existing test suites with new tests optimized for diagnostic quality. Using entropy to minimize ranking uncertainty, the approach adapts EVOSUITE’s genetic search fitness and yields substantial improvements on seven real faults.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/entropy-based-test-generation-for-improved-fault-localization/496387/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/entropy-based-test-generation-for-improved-fault-localization/496387.png","ImageObject",300,407,{"name":92,"@type":93},"River Wang","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-02","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why does spectrum-based fault localization depend on the test suite quality?","Question",{"text":112,"@type":113},"Because the diagnostic ranking produced from passing/failing outcomes is only as good as the coverage diversity provided by the existing tests. If the test suite is insufficient, confidence scores can be low and many candidates may remain.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is ENTBUG’s main idea for generating new test cases?",{"text":117,"@type":113},"ENTBUG generates additional tests guided by diagnostic accuracy. It uses probability theory and entropy to select tests that minimize uncertainty in the ranking of fault candidates.",{"name":119,"@type":110,"acceptedAnswer":120},"How does ENTBUG integrate with existing test generation tools?",{"text":121,"@type":113},"ENTBUG extends the search-based test generation tool EVOSUITE by using entropy in the fitness function of its underlying genetic algorithm, then evaluates the approach on real faults.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},496387,1791412025,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":52,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","Entropy-Based Test Generation for Improved Fault Localization  \nJos Campos* Rui Abreu* Gordon Fraser† Marcelo d'Amorim‡  \n*Faculty of Engineering of University of Porto, Portugal  \n[jose.carlos.campos@fe.up.pt](jose.carlos.campos@fe.up.pt), [rui@computer.org](rui@computer.org),  \n†University of Shefﬁeld, United Kindom  \ngordon.fraser@shefﬁ[eld.ac.uk](eld.ac.uk),  \n‡Federal University of Pernambuco, Brazil  \n[damorim@cin.ufpe.br](damorim@cin.ufpe.br)  \nAbstract—Spectrum-based Bayesian reasoning can effectively rank candidate fault locations based on passing/failing test cases, but the diagnostic quality highly depends on the size and diversity of the underlying test suite. As test suites in practice often do not exhibit the necessary properties, we present a technique to extend existing test suites with new test cases that optimize the diagnostic quality. We apply probability theory concepts to guide test case generation using entropy, such that the amount of uncertainty in the diagnostic ranking is minimized. Our ENTBUG prototype extends the search-based test generation tool EVOSUITE to use entropy in the ﬁtness function of its underlying genetic algorithm, and we applied it to seven real faults. Empirical results show that our approach reduces the entropy of the diagnostic ranking by 49% on average (compared to using the original test suite), leading to a 91% average reduction of diagnosis candidates needed to inspect to ﬁnd the true faulty one.  \nIndex Terms—Fault localization; Test case generation.  \nI. INTRODUCTION  \nProgrammers make mistakes, therefore testing and debugging are inevitable parts of software development. Spectrumbased fault localization is a popular automated approach to assist programmers in debugging [5], [6], [21], [26], [30], [35] . It takes as input code coverage information for a given test suite, and produces a list of statements ranked in order of fault suspiciousness. Unfortunately, the technique is fundamentally imprecise: it is possible that a tester will need to inspect several suspicious statements in the rank to ﬁnd the faulty one. In fact, a recent study [30] involving 68 developers failed to establish the usefulness of the approach as it only showed improvement for experienced programmers on simple code. Considering this result, is spectrum-based fault localization a dead-end avenue of research?  \nWe conjecture that the answer is no. Research in spectrumbased fault localization has continuously advanced over the past few years. Many of its notorious initial limitations are no longer a problem:  \n􀀏 it can identify multiple faults [2], [27], [37], [38];  \n􀀏 it can aggregate faults scattered across the code [2], [27],[37], [38];  \n􀀏 it can quantify conﬁdence of the diagnosis [14], [21] .  \n\n| C | Subject: Triangle | T | new tests |\n| --- | --- | --- | --- |\n|  |  | t1 t2 t3 t4 t5 t6 | t7 t8 t9 |\n| c1\u003Cbr>c2\u003Cbr>c3\u003Cbr>c4\u003Cbr>c5\u003Cbr>c6\u003Cbr>c7\u003Cbr>c8\u003Cbr>c9\u003Cbr>c10 | class Triangle f: : :\u003Cbr>static int type(int a, int b, int c)fint type = SCALENE;\u003Cbr>if ( (a==b) && (b==c) ) type = EQUILATERAL;\u003Cbr>else if ( (a*a) == ((b*b)+(c*c)) ) type = RIGHT;\u003Cbr>else if ( (a==b) jj (b==a) ) /*FAULT*/ type = ISOSCELES;\u003Cbr>return type; g\u003Cbr>static double area(int a, int b, int c)f double s = (a+b+c)/2.0;\u003Cbr>return Math.sqrt(s*(s-a)*(s-b)*(s-c));g: : : g | 1 1 1 1 0 0\u003Cbr>1 1 1 1 0 0\u003Cbr>1 0 0 0 0 0\u003Cbr>0 1 1 1 0 0\u003Cbr>0 0 1 0 0 0\u003Cbr>0 1 0 1 0 0\u003Cbr>0 1 0 0 0 0\u003Cbr>1 1 1 1 0 0\u003Cbr>0 0 0 0 1 1\u003Cbr>0 0 0 0 1 1 | 1 1 1\u003Cbr>1 1 1\u003Cbr>0 1 0\u003Cbr>1 0 1\u003Cbr>1 0 0\u003Cbr>1 0 1\u003Cbr>0 0 0\u003Cbr>1 1 1\u003Cbr>1 1 1\u003Cbr>1 1 1 |\n| Test case outcome (pass=0, fail=1): |  | 0 0 0 0 0 0 | 1 0 1 |\n| Number of fault candidates: |  | 6 | 4 2 1 |\n\nFigure 1: Triangle class adapted from [4] with tests and coverage matrix; type classiﬁes triangles based on the side lengths, and area calculates the area of the triangle. Test suite T produces an unusable ranking, but adding new test cases t7 , t8 , t9 gradually narrows down the candidate statements until only c6 remains.  \nD","cbCain3beq5KUw1N","https://ap.wps.com/l/cbCain3beq5KUw1N","pdf",435504,11,"English","# Introduction\n## Motivation and limitation of spectrum-based approaches\n## Proposed ENTBUG technique\n## Entropy to guide test generation","[{\"question\":\"Why does spectrum-based fault localization depend on the test suite quality?\",\"answer\":\"Because the diagnostic ranking produced from passing/failing outcomes is only as good as the coverage diversity provided by the existing tests. If the test suite is insufficient, confidence scores can be low and many candidates may remain.\"},{\"question\":\"What is ENTBUG’s main idea for generating new test cases?\",\"answer\":\"ENTBUG generates additional tests guided by diagnostic accuracy. It uses probability theory and entropy to select tests that minimize uncertainty in the ranking of fault candidates.\"},{\"question\":\"How does ENTBUG integrate with existing test generation tools?\",\"answer\":\"ENTBUG extends the search-based test generation tool EVOSUITE by using entropy in the fitness function of its underlying genetic algorithm, then evaluates the approach on real faults.\"}]","Entropy-Based Test Generation for Improved Fault Localization | PDF",1790931595,28,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/afce380f01e056119e0384147ba309e7.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/99435818afb75ea60cf0f11f0f3f3296.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e0618be32c73b1c7111f1c2c4279a42e.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2e004520feb1867e16533caee058b29f.webp",980,1268]