[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-496410-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-496410-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-496410","Entropy-based Test Generation for Improved Fault Localization","","Spectrum-based Bayesian fault localization can rank suspicious statements using passing/failing test outcomes, yet diagnostic quality strongly depends on the size and diversity of the available test suite. Real-world suites often lack these properties. ENTBUG extends EVOSUITE with an entropy-driven fitness function to generate additional tests. Applied to seven real faults, the approach reduces diagnostic ranking entropy by 49% on average versus the original suites, and cuts the average number of candidates that must be inspected by 91%.",{"@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-496410/496410/",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-496410/496410.png","ImageObject",300,407,{"name":42,"@type":43},"วิน","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","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},"Its diagnostic accuracy relies on the coverage and diversity of the passing/failing test cases. If the existing tests do not have the needed properties, the ranking can remain imprecise and require inspecting many candidates.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What does ENTBUG change in test generation compared with existing tools?",{"text":68,"@type":64},"ENTBUG generates new test cases guided by diagnostic accuracy using entropy. It integrates entropy into the fitness function of the EVOSUITE genetic algorithm to steer search toward more informative tests.",{"name":70,"@type":61,"acceptedAnswer":71},"What improvements were observed when ENTBUG was evaluated on real faults?",{"text":72,"@type":64},"Across seven real faults, ENTBUG reduced the entropy of the diagnostic ranking by 49% on average and led to a 91% average reduction in the number of diagnosis candidates that must be inspected to find the true faulty one.","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},496410,1791047982,{"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},2336475104736,"https://ap-avatar.wpscdn.com/avatar/22000c4c5e0e5b17e70?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786591360781797222","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  \n[gordon.fraser@sheffield.ac.uk](gordon.fraser@sheffield.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","cbCaihpDNnXtEQ7t","https://ap.wps.com/l/cbCaihpDNnXtEQ7t","pdf",421410,11,"English","# Introduction\n## Motivation: spectrum-based fault localization and test-suite dependency\n## Proposed solution: ENTBUG with entropy-guided test generation\n## Background: entropy as uncertainty in diagnostic ranking","[{\"question\":\"Why does spectrum-based fault localization depend on the test suite quality?\",\"answer\":\"Its diagnostic accuracy relies on the coverage and diversity of the passing/failing test cases. If the existing tests do not have the needed properties, the ranking can remain imprecise and require inspecting many candidates.\"},{\"question\":\"What does ENTBUG change in test generation compared with existing tools?\",\"answer\":\"ENTBUG generates new test cases guided by diagnostic accuracy using entropy. It integrates entropy into the fitness function of the EVOSUITE genetic algorithm to steer search toward more informative tests.\"},{\"question\":\"What improvements were observed when ENTBUG was evaluated on real faults?\",\"answer\":\"Across seven real faults, ENTBUG reduced the entropy of the diagnostic ranking by 49% on average and led to a 91% average reduction in the number of diagnosis candidates that must be inspected to find the true faulty one.\"}]","Entropy-based Test Generation for Improved Fault Localization | PDF",1790931806,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/cee8084712aaee558c02ea77ab17d640.webp",983,1272,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0b772eeb9bac5aa40b25beca1474238f.webp",982,1270,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/83175d649bd2052bfb208230919d724d.webp",981,1269,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c0f8481609a69f9fc74cefc2ad836fa5.webp",980,1268]