[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327411-105":59,"doc-detail-327411-en":130,"doc-similar-327411":162},{"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","prompt-coverage-adequacy","Prompt Coverage Adequacy","","Large language models and autonomous agents are shifting software development toward expressing intents and goals, making prompts primary artifacts instead of code. This change complicates how test adequacy should be measured when prompts, not implementations, define requirements. The paper introduces Prompt Coverage Adequacy, an analog to code coverage that evaluates how well a test suite satisfies requirements stated in prompts using LLM attention. Experiments across datasets and LLMs show Prompt Coverage correlates with fault detection and can reveal over 30% more faults than traditional code coverage when guiding test generation.",{"@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/prompt-coverage-adequacy/327411/",{"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/prompt-coverage-adequacy/327411.png","ImageObject",300,407,{"name":92,"@type":93},"Eliana","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":56},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does Prompt Coverage Adequacy address?","Question",{"text":112,"@type":113},"It addresses how to evaluate test adequacy when prompts are the primary development artifacts and requirements are expressed in natural language rather than reflected solely in executed code.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Prompt Coverage Adequacy work conceptually?",{"text":117,"@type":113},"It measures how well a test suite satisfies requirements expressed in a prompt by leveraging LLM attention mechanisms, treating prompt requirements as the unit of coverage.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the proposed criterion compare with traditional code coverage?",{"text":121,"@type":113},"The results indicate Prompt Coverage is associated with better fault-detection effectiveness and can uncover over 30% more faults than traditional code coverage when used to guide test generation.","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},327411,1790463274,{"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":56,"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":41,"preview_page_count":19,"preview_urls":145},4398048949847,"https://ap-avatar.wpscdn.com/avatar/400002536579ef2da7f?_k=1778318612642679267","Prompt Coverage Adequacy  \nFlorian Tambon  \nSnT, University of Luxembourg Luxembourg [florian.tambon@uni.lu](florian.tambon@uni.lu)  \nMichael Konstantinou  \nSnT, University of Luxembourg Luxembourg [michael.konstantinou@uni.lu](michael.konstantinou@uni.lu)  \nCedric Richter  \nSnT, University of Luxembourg Luxembourg [cedric.richter@uni.lu](cedric.richter@uni.lu)  \nCharles Chenouard SnT, University of Luxembourg  \nLuxembourg [charles.chenouard@ext.uni.lu](charles.chenouard@ext.uni.lu)  \nMark Harman  \nUniversity College London London, UK [mark.harman@ucl.ac.uk](mark.harman@ucl.ac.uk)  \nMike Papadakis  \nSnT, University of Luxembourg Luxembourg [michail.papadakis@uni.lu](michail.papadakis@uni.lu)  \narXiv :2607 .02057v 1 [ cs . SE] 2 Jul 2026  \nAbstract—In recent years, it has become increasingly evident that large language models (LLMs) and autonomous agents raise the level of abstraction in software development by shifting the focus from writing precise procedures to expressing intents and goals. This paradigm shift introduces new challenges, particularly in how testing should be guided when prompts, rather than code, become primary development artifacts. To address this challenge, we propose Prompt Coverage Adequacy, a novel coverage criterion designed to support the testing of code generated from task descriptions. Prompt Coverage Adequacy serves as an analog to traditional code coverage, but operates at the level of prompts used in LLM and agent-based programming. Specifically, it measures how well a given test suite satisfies the requirements expressed in a prompt by leveraging the attention mechanisms of LLMs. We evaluate a simple instantiation of this criterion, based on attention boosting, across two datasets and multiple LLMs. Our results demonstrate that Prompt Coverage is associated with fault-detection effectiveness and can uncover over 30+% more faults than traditional code coverage when used to guide test generation. These findings suggest that Prompt Coverage Adequacy can serve as a foundation for developing testing metrics better suited to the emerging paradigm of LLM-driven software development, addressing the limitations of classical coverage criteria in this new context.  \nIndex Terms—language models, requirements, testing, coverage criteria  \nI. INTRODUCTION  \nLarge Language Models (LLMs) can automatically generate software from natural language descriptions, significantly accelerating development. However, the generated code may contain bugs, misunderstand requirements, omit functionality, or introduce security vulnerabilities. Since LLMs do not truly understand the intended behavior of a system, they can produce code that appears correct but fails in important situations [30] .  \nTraditionally, software testing relies on adequacy criteria [23], [39], such as statement, branch, and mutation testing, to assess the effectiveness of a test suite. These criteria provide measurable indicators of test strength, help identify untested functionality, guide the creation of additional tests, and support the prioritization of testing effort. More broadly, test adequacy criteria offer an objective basis for evaluating how thoroughly a software system has been exercised.  \nHowever, the emergence of LLM-driven software development challenges the assumptions underlying traditional coverage metrics. In conventional software engineering, source code constitutes the primary development artifact, and coverage criteria evaluate the extent to which the generated code has been executed by a test suite. In contrast, when software is produced from natural language task descriptions, prompts become first class artifacts that explicitly capture the intended requirements and behavior of the system [10] .  \nThis shift exposes a fundamental limitation of traditional coverage metrics. Consider a prompt that requests a booking system supporting booking creation, cancellation, refunds, and email notifications. A test suite may exercise all ge","cbCaimLOlYg9GwXT","https://ap.wps.com/l/cbCaimLOlYg9GwXT","pdf",697659,12,"English","# Introduction\n## Motivation for prompt-level adequacy\n## Limitations of traditional coverage metrics","[{\"question\":\"What problem does Prompt Coverage Adequacy address?\",\"answer\":\"It addresses how to evaluate test adequacy when prompts are the primary development artifacts and requirements are expressed in natural language rather than reflected solely in executed code.\"},{\"question\":\"How does Prompt Coverage Adequacy work conceptually?\",\"answer\":\"It measures how well a test suite satisfies requirements expressed in a prompt by leveraging LLM attention mechanisms, treating prompt requirements as the unit of coverage.\"},{\"question\":\"How does the proposed criterion compare with traditional code coverage?\",\"answer\":\"The results indicate Prompt Coverage is associated with better fault-detection effectiveness and can uncover over 30% more faults than traditional code coverage when used to guide test generation.\"}]","Prompt Coverage Adequacy | PDF",1789977150,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ffe98ae27c1b6287486063a8390403f3.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1fe54bb0429a9c89b6868246809782c5.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5b344c7d845222097b7e6734844fb40e.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4db6183da018414da495557f955a1970.webp",980,1268,{"list":163,"token":66},[164,171,178,185,192,198,204,210,217,223],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":40,"create_tm":170},83907,"On the Risk of Coding Before Testing: An Empirical Study on LLM-Based Test Generation Workflow","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809113843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=SG4E3MwjNMM2FISD%2B0t25qRmrpo%3D","on-the-risk-of-coding-before-testing-an-empirical-study-on-llm-based-test-generation-workflow",29,1784191366,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},273343,"Don’t Judge Code by Its Cover - Exploring Biases in LLM Judges for Code Evaluation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899545532/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=RE2QD6dYBH%2FQBb5RZnUsatRKzVQ%3D","dont-judge-code-by-its-cover-exploring-biases-in-llm-judges-for-code-evaluation",18,1789470970,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},122284,"Novel Machine Learning Approach for Defect Detection in DFT Processes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836682023/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=eJJRze8IbG%2BoR98C4uMpyBZVEYc%3D","novel-machine-learning-approach-for-defect-detection-in-dft-processes",21,1785809818,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},510272,"Drag-and-Drop LLMs - Zero-Shot Prompt-to-Weights","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935338392/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ofJAhjHFFu5Ed4XetzBiR7SMFX0%3D","drag-and-drop-llms-zero-shot-prompt-to-weights",15,1791240164,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":139,"category_name":40,"create_tm":197},429163,"Substance Beats Style - Why Beginning Students Fail to Code with LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922832720/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=3T0qyLT41OrqURdFXuCHflJPH%2F8%3D","substance-beats-style-why-beginning-students-fail-to-code-with-llms",1790648879,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":183,"category_name":40,"create_tm":203},122279,"Machine Learning Algorithms for Fault Prediction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836750132/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=%2Bkb7lERkhPQJdgkDZ9VX%2F2jAiTc%3D","machine-learning-algorithms-for-fault-prediction",1785809790,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":39,"category_name":40,"create_tm":209},496362,"A Subsumption Hierarchy of Test Case Prioritization for Composite Services","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929459780/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=xLRy%2BFMPuwFWnzMLQiusvyksG0Q%3D","a-subsumption-hierarchy-of-test-case-prioritization-for-composite-services",1790931160,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},327769,"Don’t Blame the Large Language Model - How Scaffolding Evolution Shapes Coding Agent Quality","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909345442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=bHyqj471kLV6YZpXL3ztGimWHnk%3D","dont-blame-the-large-language-model-how-scaffolding-evolution-shapes-coding-agent-quality",16,1789978000,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":8,"category_name":40,"create_tm":222},751132,"Engineering Reliable Commit Gates for Agentic AI - Cost-Aware Verification Portfolios under Common-Mode Data Failures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230040786617/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=lUDer5dmiylY5iDHYBVGzsfG82c%3D","engineering-reliable-commit-gates-for-agentic-ai-cost-aware-verification-portfolios-under-common-mode-data-failures",1795724302,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":44,"category_name":40,"create_tm":228},273353,"Library Hallucinations in LLM-Generated Code - A Risk Analysis Grounded in Developer Queries","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899929277/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=AkHhmxFA373dwpxzttK%2BXj7kOqw%3D","library-hallucinations-in-llm-generated-code-a-risk-analysis-grounded-in-developer-queries",1789471019]