[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-496405-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-496405-en":131},{"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","entropy-based-test-generation-for-improved-fault-localization-abstract","Entropy-Based Test Generation for Improved Fault Localization - Abstract","","Spectrum-based Bayesian reasoning can rank candidate fault locations using passing and failing test cases, yet diagnostic quality strongly depends on the size and diversity of the existing test suite. Many real suites lack the needed properties, so the work introduces a technique that extends existing suites with new tests to optimize diagnostic quality. Entropy-guided generation minimizes uncertainty in the diagnostic ranking, implemented in ENTBUG by integrating entropy into EVOSUITE’s genetic fitness function and evaluated on seven real faults.",{"@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/entropy-based-test-generation-for-improved-fault-localization-abstract/496405/",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/entropy-based-test-generation-for-improved-fault-localization-abstract/496405.png","ImageObject",300,407,{"name":42,"@type":43},"\tCallum ","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-02","2026-10-02",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",12,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why does spectrum-based fault localization depend on the test suite quality?","Question",{"text":63,"@type":64},"Because the diagnostic ranking quality is tightly tied to how the test suite covers and distinguishes program statements using passing/failing outcomes.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the main idea behind ENTBUG?",{"text":68,"@type":64},"ENTBUG generates new test cases guided by entropy to improve diagnostic accuracy, specifically reducing uncertainty in the fault candidate ranking.",{"name":70,"@type":61,"acceptedAnswer":71},"How does ENTBUG relate to EVOSUITE in the implementation?",{"text":72,"@type":64},"ENTBUG extends the search-based test generation tool EVOSUITE by using entropy in the fitness function of its underlying genetic algorithm.","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},496405,1791025131,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"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":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":33,"preview_urls":147},137451211410,"https://ap-avatar.wpscdn.com/avatar/2000bb0a9246f588df?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786362646172706240","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","cbCaiplHOdxmiUj7","https://ap.wps.com/l/cbCaiplHOdxmiUj7","pdf",494057,11,"English","# Introduction\n## Spectrum-based fault localization and limitations\n## Proposed ENTBUG approach\n# Entropy-based test generation","[{\"question\":\"Why does spectrum-based fault localization depend on the test suite quality?\",\"answer\":\"Because the diagnostic ranking quality is tightly tied to how the test suite covers and distinguishes program statements using passing/failing outcomes.\"},{\"question\":\"What is the main idea behind ENTBUG?\",\"answer\":\"ENTBUG generates new test cases guided by entropy to improve diagnostic accuracy, specifically reducing uncertainty in the fault candidate ranking.\"},{\"question\":\"How does ENTBUG relate to EVOSUITE in the implementation?\",\"answer\":\"ENTBUG extends the search-based test generation tool EVOSUITE by using entropy in the fitness function of its underlying genetic algorithm.\"}]","Entropy-Based Test Generation for Improved Fault Localization - Abstract | PDF",1790931785,28,[148,152,156,160],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e48fe19409e465e4fe13b7aded8e683b.webp",983,1272,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0d4c1b0fee953f1d85c32e3d2de9a637.webp",982,1270,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c800b0665e3ff4b93f11449bf008d365.webp",981,1269,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/387392a83977fc385b32148a5310b9cd.webp",980,1268]