Manuscript Offprint
arXiv:2610.32548Beyond Coverage and Mutation: A Blind-Spot Analysis of LLM-Generated Unit Tests
XIAOYU SHI, Aalto University, Finland
WENQIANG LUO, City University of Hong Kong, China
BOYANG YANG, Yanshan University, China
HAOYE TIAN , Aalto University, Finland
Existing evaluation protocols for LLM-generated unit tests rely on aggregate metrics such as branch coverage and mutation score. These metrics quantify the extent to which a test suite exercises program behavior, but do not identify the behavioral obligations it systematically leaves unchecked. We propose BLINDSPOTEVAL, an obligation-based evaluation framework aligned with the Arrange-Act-Assert pattern. The framework comprises three metrics, Boundary-Value Adequacy, Control-Flow Adequacy, and Oracle Strength, complemented by an assessment of execution reliability. We also introduce OBLIGBENCH, a complexity-stratified Java benchmark comprising 895 complex and 700 low-complexity functions with source-side obligation annotations. Applied to 14,320 tests generated by four LLMs under four prompting strategies, BLINDSPOTEVAL reveals systematic blind spots that aggregate metrics do not distinguish. Before adequacy scoring, 19.7% of tests fail to execute successfully, with failures ranging from compilation errors to runtime exceptions. Among test failures, 15.6% involve incorrect assertions, termed wrong-oracle failures. Such tests can contribute to code coverage despite failing, illustrating that coverage alone does not establish oracle correctness. Among executable tests, LLMs readily cover directly inferable boundary cases but struggle with non-inferable ones. Coverage of null, negative, and empty arguments reaches only 34.8%, 23.8%, and 38.8%, compared with average coverage above 93% for booleans. Exceptional control flow exhibits a similar pattern. Exceptional and fallback behavior is weakly checked, with CFA scores of 0.100 for catch blocks and 0.312 for default groups. Across both dimensions, LLM-generated tests exhibit the happy-path bias observed in human-written tests, concentrating on normal inputs and expected flows while leaving unusual values and exceptional paths unchecked. Oracle strength is high on average but uneven, with weaker assertions for object return property values and exceptions. These blind spots also occur in low-complexity functions, suggesting that code complexity alone does not explain them. BLINDSPOTEVAL provides construct-level adequacy profiles that identify under-tested obligation types and can guide targeted improvements beyond those supported by aggregate scores alone.
1 Introduction
Software testing is fundamental to software quality, it provides a primary mechanism for developers to assess whether code behaves as intended and whether changes introduce regressions [2, 38]. As large language models (LLMs) increasingly support code generation and modification [9], automated unit test generation has become correspondingly important. Research on LLM-based test generation has advanced rapidly, producing a range of approaches. Zero-shot prompting generates tests directly from the function signature and body [10, 48, 52, 53, 57], feedback-based approaches iteratively refine tests using coverage or mutation signals [11, 13, 58], and planning-based approaches first reason about the function's intent [19]. Recent tools regularly produce tests that compile, run, and achieve high branch coverage and competitive mutation scores [10, 26].
High aggregate scores, however, do not necessarily indicate thorough testing. Prior work commonly evaluates LLM-generated tests using branch coverage, which measures the proportion of program branches executed [15, 60], and mutation score, which measures the proportion of artificially injected faults detected [12, 27]. A replicability study found that these metrics correlate with fault detection only under restricted conditions [59]. Although useful for summarizing
Authors' Contact Information: Xiaoyu Shi, xiaoyu.shi@aalto.fi, Aalto University, Espoo, Finland; Wenqiang Luo, wenqialuo4c@my.cityu.edu.hk, City University of Hong Kong, Hong Kong, China; Boyang Yang, yby@ysu.edu.cn, Yanshan University, Hebei, China; Haoye Tian, haoye.tian@aalto.fi, Aalto University, Espoo, Finland.
Shi et al.
test effectiveness, these metrics do not directly identify which obligations remain unchecked. For example, tests using only ordinary inputs may achieve the same line coverage as tests that also check boundary values whenever those inputs traverse the same statements. Similarly, a high mutation score indicates sensitivity to injected changes without necessarily establishing whether tests adequately check particular input boundaries, exceptional paths, or behavioral properties. These distinctions have practical consequences. Omitting null inputs may leave null-handling faults undetected, failing to exercise exception handlers may leave exception-swallowing behavior unchecked, and weak assertions may allow incorrect results to pass unnoticed. Scores of 90% mutation adequacy and 80% branch coverage alone do not establish whether null inputs, exception paths, or object-state invariants have been adequately tested.
Unit tests are commonly structured according to the Arrange-Act-Assert (AAA) pattern [37, 41]. The Arrange phase prepares the inputs, the Act phase invokes the function, and the Assert phase verifies the resulting behavior. This structure suggests three complementary evaluation dimensions, (1) tests should cover relevant input boundary values during Arrange; (2) tests should exercise relevant control-flow alternatives during Act; and (3) tests should verify the resulting behavior through their assertions. We refer to the behaviors that tests should exercise or verify, as identified from a function's implementation, as obligations. Our aim is to identify systematic blind spots in how LLM-generated tests satisfy these obligations.
Existing approaches primarily assess generated tests through aggregate metrics. CoverAgent [11] seeks to maximize branch coverage but provides no construct-level diagnosis of what remains unchecked; MuTAP [13] and ChatTester [58] use mutation feedback to improve tests, with aggregate mutation scores serving as an evaluation measure. To the best of our knowledge, no existing framework jointly assesses LLM-generated tests at the obligation level across all three AAA dimensions. We propose BLINDSPOTEVAL, an obligation-based evaluation framework aligned with the AAA pattern [37, 41]. For each function under test, the framework assesses which input boundaries, control-flow alternatives, and behavioral properties the generated tests exercise or verify.
Before assessing adequacy, we examine execution reliability through the following research question:
RQ1 (Executability). To what extent do LLMs generate compilable and runnable tests, and what are the common failure modes? We measure execution success across multiple LLMs and prompting strategies and characterize failure modes to distinguish execution failures from adequacy gaps.
For tests that compile and execute successfully, we then investigate three dimensions of adequacy.
RQ2 (Arrange). To what extent do LLM-generated tests cover the input boundary values relevant to a function? We propose Boundary-Value Adequacy (BVA), which statically extracts per-parameter obligations and assesses whether the generated tests cover them.
RQ3 (Act). To what extent do LLM-generated tests adequately exercise the control-flow alternatives within a function? We propose Control-Flow Adequacy (CFA), which uses extreme-condition mutation to assess obligations associated with conditions, exception handlers, and switch cases.
RQ4 (Assert). To what extent do LLM-generated tests verify a function’s outputs and exception behavior? We propose Oracle Strength (OS), which mutates return values and exception behavior and assesses whether the tests’ assertions detect these changes. We exclude incidental kills caused by unexpected exceptions or crashes from the killed-mutant count, so that these failures do not inflate the estimated strength of the test oracles.
Finally, we examine whether the observed blind spots also occur in less complex code:
RQ5 (Complexity). To what extent do the observed blind spots persist across levels of code complexity? We compare complex functions with a low-complexity control set to assess whether the identified gaps are concentrated in complex code or also occur in simpler functions.
To answer these questions we need a benchmark of real-world functions with known obligation profiles and a complexity-controlled comparison set. Existing benchmarks such as TestGenEval [26] evaluate test generation quality using aggregate metrics but do not provide obligation-level annotations together with a complexity-stratified comparison set. We therefore introduce ObligBench, a Java benchmark derived from The Stack v2 [35]. It comprises 895 complex functions under test, selected from the top 5% by cyclomatic [36] and cognitive [8] complexity, and a low-complexity control set of 700 functions. In the main experiment, we evaluate four LLMs (GPT-5.4, Gemma-4-31B, Gemini-3.6-flash, and Qwen3-Coder-30B) under four prompting strategies (zero-shot, intention-planning, mutation-feedback, and Panta [19]) on the 895 complex functions, yielding 14,320 generated tests for RQ1-RQ4. For RQ5, we additionally evaluate tests generated for the 700-function low-complexity control set.
Our results reveal systematic adequacy blind spots that aggregate coverage and mutation scores do not distinguish. LLM-generated tests struggle most with inputs requiring semantic reasoning about the function's contract, as null inputs are covered in only 34.8% of applicable cases, negative inputs in 23.8%, and empty inputs in 38.8%. The same happy-path bias appears in control-flow adequacy, with scores of 0.100 for catch blocks and 0.312 for default groups, as reaching these constructs requires deliberately out-of-domain inputs that LLMs tend to avoid. Taken together, these patterns show that LLMs exhibit the happy-path bias long observed in human-written test suites [5, 6] that, attention is concentrated on normal inputs and expected execution flows, while unusual values and exceptional paths are systematically omitted, forming blind spots that aggregate metrics do not surface. On the assertion side, oracle strength is high overall but weak for object returns when concrete default mutation can be made, where models default to coarse checks rather than field-level value assertions. Section 6 presents the full results for all five research questions.
This paper contributes:
(1) Evaluation framework. BLINDSPOTEVAL combines an executability assessment with three AAA-aligned adequacy metrics (BVA, CFA, and OS). It characterizes execution failures before adequacy scoring and produces construct-level profiles that identify under-tested obligation types, supporting targeted improvements to generated tests.
(2) Benchmark. OBLIGBENCH comprises 895 complex and 700 low-complexity real-world Java functions under test (FUTs), with source-side obligation annotations and immutable-FUT constraints.
(3) Empirical study. An evaluation of four LLMs under four prompting strategies, comprising 14,320 generated tests on complex functions, characterizes execution failure modes and identifies recurring gaps in boundary-value coverage, exceptional control flow, and oracle strength. An additional study on 700 low-complexity functions indicates that these patterns are more pronounced in complex functions but also occur in simpler code. All artifacts are publicly available.
Shi et al.
to improve code coverage. CodaMosa [33] invokes an LLM to overcome coverage plateaus in search-based generation. MuTAP [13] uses surviving mutants to augment prompts for further test generation. ChatTester [58] combines intention-based generation with iterative repair guided by compilation errors and additional code context. Panta [19] integrates static control-flow analysis and dynamic coverage feedback to identify under-tested execution paths and guide subsequent generation. In an industrial setting, Alshahwan et al. [1] introduce TestGen-LLM, which extends existing tests and filters generated candidates for build success, execution reliability, and coverage improvement. These approaches commonly assess effectiveness through compilation or execution success, structural coverage, or aggregate mutation scores. BLINDSPOTEVAL complements these measures with obligation-level profiles that distinguish adequacy across input categories, control-flow constructs, and assertion targets.
Test adequacy criteria. Structural criteria, including line coverage, branch coverage, and modified condition/decision coverage (MC/DC), assess the execution of code elements and satisfaction of decision-related coverage requirements [2, 60]. Mutation testing introduces artificial faults and assesses whether tests detect the resulting changes [12, 14, 27, 40, 54]. Although both approaches provide detailed information, their aggregate scores do not directly distinguish adequacy across input categories, construct types, and assertion targets. Prior work examines limitations of structural coverage [18, 24], its relationship with mutation-based test generation [17], and the detection of real faults by generated tests [50]. Other studies investigate whether mutation analysis reflects real-fault detection [4, 46]. For LLM-generated tests, a replicability study finds that the usefulness of coverage and mutation scores depends on the evaluation setting [59].
Boundary-value analysis emphasizes inputs at and around the boundaries of equivalence partitions [2, 38]. Category-partition testing similarly organizes the input space into categories and choices [42]. Our Boundary-Value Adequacy (BVA) metric operationalizes these ideas through statically extracted per-parameter obligations. A boundary category receives credit only when the corresponding value is supplied at the relevant parameter position, allowing gaps to be attributed to specific categories and parameters.
Extreme mutation identifies pseudo-tested methods whose implementation logic can be removed without causing test failures [39]. Vera-Pérez et al. [56] extend this work through a broader empirical study of pseudo-tested methods. Our Control-Flow Adequacy (CFA) metric instead targets individual control-flow constructs, attributing gaps to specific exception handlers, default branches, and throw paths.
For oracle evaluation, Barr et al. [5] survey the broader test oracle problem. Schuler and Zeller [49] introduce checked coverage, which uses dynamic slicing to identify executed statements that influence an oracle. Just et al. [30] find an empirical relationship between mutant detection and real-fault detection, supporting mutation analysis as a proxy under the studied conditions. Our Oracle Strength (OS) metric assesses assertion-based detection of mutations to return values and exception behavior. It gives incidental kills caused by unexpected exceptions or crashes no credits and reports scores by assertion subcategory, distinguishing oracle strength for object returns, exception behavior, and scalar values.
Benchmarks for automated test generation. Established benchmarks such as SF110 [16] and Defects4J [29] support the evaluation of test generation and fault detection and predate the recent use of LLMs for these tasks. More recent benchmarks draw on repositories and curated code corpora. ULT [23] provides curated function-level tasks involving complex Python functions, with an emphasis on mitigating test contamination. Its paired benchmark, PLT, supports comparisons with a setting in which reference tests are exposed. TestGenEval [26] provides code-test file pairs for full-file test generation and test completion, evaluated through execution success, coverage, and mutation scores. Other benchmarks address related objectives. EvalPlus [34] augments HumanEval with more extensive test inputs to evaluate the functional correctness of generated code, while SWE-bench [28] targets repository-level issue resolution. These resources do not jointly provide source-side obligation annotations and a complexity-stratified comparison set for evaluating generated unit tests. OBLIGBENCH provides both through real-world Java functions drawn from The Stack v2 [35], complexity-based selection, and source-side obligation annotations. Its evaluation protocol requires function bodies to remain unchanged so that adequacy is assessed against a fixed implementation.
3 ObligBench Construction
Existing test-generation benchmarks evaluate quality through aggregate metrics and do not jointly provide obligation-level annotations and a comparison set spanning different levels of complexity. To surface blind spots at the obligation level across all three AAA dimensions, we construct ObligBench from The Stack v2 [35], a large licensed source-code corpus. We focus on Java because its explicit method signatures and mature analysis and testing ecosystem, including JaCoCo and PIT [12], support self-containment validation and obligation-level analysis. Adapting the multi-stage construction approach of ULT [23], we select functions under test (FUTs) by complexity, and validate both high-complexity and low-complexity sets for self-containment and leakage before generation as discussed below.
Complexity-guided non-trivial FUT selection. We select non-trivial FUTs using two complementary complexity metrics: (1) Cyclomatic complexity (CycC) [36] counts independent execution paths, and (2) cognitive complexity (CogC) [8] additionally penalizes nesting and flow interruptions. Together, these metrics capture different aspects of control-flow complexity and provide a basis for selecting functions with varied test-generation demands.
We use the top 5% under each metric to define two overlapping high-complexity views. In our hydrated Java sample, these thresholds are and . Each view contains 700 tasks, of which 505 occur in both views. We retain the overlap and record view membership for each task so that subsequent analyses can account for the shared functions. The deduplicated union of 895 functions forms the treatment set used in the main evaluation across LLMs and prompting strategies. For RQ5, we additionally construct a 700-function control set with scores below both thresholds ( and ). Both sets undergo self-containment validation and together constitute OBLIGBENCH. The control set is used only for the complexity comparison in RQ5.
Self-containment. To enable test generation and execution without full repository context, we package each accepted function as an isolated executable Java task. The FUT body remains unchanged throughout this process, enforced by AST-token signature comparison against the original source. Each task passes a three-stage filter: parsing and type extraction, a smoke test that compiles the task and executes three distinct invocations, and an LLM wrapper-generation fallback for fixtures that fail to compile or execute.
Test leakage check. Pre-existing tests in the corpus would give LLMs an unfair retrieval advantage [51]. Following ULT [23], we check for existing tests associated with each FUT in the source corpus. We identify test-like files from the same Stack v2 repository and revision using path and content patterns, including /test/, *Test.java, @Test, and common JUnit or TestNG imports. Our check is a deterministic filter over the hydrated cache, and we flag a candidate only if it references the focal method, class, or package with sufficient heuristic evidence. In ObligBench, no likely corresponding Stack v2 tests were found for any of the 895 unique tasks.
Tables 1 and 2 summarize the complexity and obligation profiles of both control and treatment sets. Table 1 shows that control FUTs have a median CycC of 1 and a median CogC of 1, while treatment FUTs reach a median CycC of 10 and CogC of 18. Table 2 shows that treatment FUTs span a median of 9 branch-condition items across 35 lines, compared to 0 items and 3 lines in
Shi et al.
Table 1. Complexity profile of ObligBench treatment views and low-complexity control set.
| Split | N | CycC | CogC | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Min | Median | Mean | Max | Min | Median | Mean | Max | ||
| top5-CycC | 700 | 8 | 10.0 | 12.64 | 75 | 1 | 17.5 | 23.42 | 233 |
| top5-CogC | 700 | 1 | 9.0 | 11.68 | 75 | 13 | 18.0 | 25.05 | 233 |
| control | 700 | 1 | 1.0 | 1.41 | 7 | 0 | 1.0 | 1.51 | 12 |
Table 2. Source-obligation profile of ObligBench, percentages are relative to the split size. “FUT lines” and “Branch items” report medians per task.
| Split | N | Exception | Branch tasks | FUT lines (med) | Branch items (med) |
|---|---|---|---|---|---|
| top5-CycC | 700 | 123 (17.6%) | 689 (98.4%) | 35 | 9 |
| top5-CogC | 700 | 150 (21.4%) | 698 (99.7%) | 35 | 9 |
| control | 700 | 50 (7.1%) | 165 (23.6%) | 3 | 0 |
the control set. These profiles indicate that the treatment views contain more extensive control flow and more source-level branch obligations, providing a basis for examining adequacy gaps in complex functions.
4 Evaluation Metrics
Our research questions demand metrics that go beyond aggregate execution, coverage, and mutation scores. A test may execute successfully, cover branches, and kill mutants while still omitting important inputs, failing to check observable obligation, or asserting only coarse properties [5, 22, 25]. Aggregate metrics summarize test performance but do not directly identify which behavioral obligations remain unchecked. We therefore define a set of deterministic adequacy metrics that characterize complementary dimensions of generated-test behavior and produce construct-level profiles.
The proposed metrics follow the Arrange-Act-Assert (AAA) structure commonly used to organize unit tests [37, 41]. We measure Boundary-Value Adequacy (Section 4.3), which characterizes the inputs a test arranges; Control-Flow Adequacy (Section 4.4), which characterizes the behavioral branches the test reaches and distinguishes; and Oracle Strength (Section 4.5), which whether tests check return values and exception behavior through targeted mutations. Each metric is computed per generated test per FUT, and aggregate results are reported by model and prompting strategy. We refer to each test–FUT evaluation instance as a row.
The three metrics use different measurement procedures. BVA statically identifies selected input categories from the test source, independently of assertion quality. CFA and OS use targeted mutations and test execution to assess detection, and they are not independent: an obligation the test never reaches scores zero in CFA and is excluded from the OS denominator, so test suites with poor CFA may still have good OS. We report the eligible-obligation count alongside OS summary scores. We first describe the shared obligation scoring pipeline, then define each metric in turn.
4.1 Mutation-Based Obligation Scoring Pipeline
CFA and OS both score obligations by mutation: for each obligation, we construct mutants whose survival implies the obligation was not exercised or not checked. This differs from classical mutation testing, which reports a single aggregate kill count treating equivalent mutants as noise [45]. Here, we score by the stage where obligation belongs (arrange, act or assert), and the corresponding obligation must be killed, incidental kills do no contribute the scores. Two design choices distinguish our scoring: mutants are attributed to individual obligations and scored per-obligation, and unrepresentable obligations are excluded from adequacy denominators, with CFA additionally reporting a representativeness rate to indicate tooling gaps.
Table 3. Eligibility funnel for Oracle Strength (4 models × 4 prompts × 895 FUTs = 14,320 rows). Obligations include return-value and exception behavior.
| Stage | Rows / items |
|---|---|
| Generated-test rows in set | 14,320 |
| eligible after execution filtering | 10,329 |
| non-private targets with mutation evidence | 6,682 |
| Obligations found | 17,944 |
| reached by the original test | 14,338 |
| with an eligible, executed mutant | 13,256 |
| checked | 10,859 |
The CFA and OS scoring pipeline separates into two stages: (1) collectors generate mutants, compile and execute them, and write versioned artifacts, and (2) an analyzer consumes those artifacts and computes scores without rerunning mutations. Table 3 traces the Oracle Strength eligibility funnel from the 14,320 generated tests down to scored obligations, showing how population shrinks at each stage: test execution, obligation reachability, mutant viability, and oracle detection.
Not every mutant kill indicates that the test deliberately verified the changed behavior: a mutant may also be killed by an unexpected exception, which is an incidental kill. To exclude incidental kills, we classify assertion failures (AssertionError and its subtypes, including JUnit, OpenTest4J, and Mockito verification failures) as oracle kills, and all other escaping throwables as incidental. Incidental kills contribute zero to all scores. Moreover, an obligation the original test never reaches is excluded from OS and charged to CFA, and a mutant that could not be generated, failed to compile, or timed out reflects a tooling limitation and is excluded from adequacy denominators.
4.2 Execution Reliability: Pre-Scoring Failure Classification
We evaluate generated tests in a regression-testing setting, treating the original FUT as the reference implementation. Before adequacy scoring, we identify compilation failures, execution failures, and fixed placeholder outputs. These rows receive explicit skip statuses and are retained for reporting exclusion rates.
Compile failures arise when the test cannot be compiled due to private-field access, unresolved symbols, type mismatches, checked-exception violations, or syntax errors.
Execution failures arise when the test compiles but does not reach a clean end state. Subcategories include uncaught runtime exceptions and timeouts. We separately identify wrong-oracle failures, in which an assertion specifies an expected result inconsistent with the reference implementation. Line and branch coverage may still record the code executed before the assertion fails, so coverage scores alone do not establish whether the generated test passes.
Generation failures include Panta's fixed placeholder output, identified by its placeholder marker and small stub structure. This output contains a vacuous assertTrue(true) assertion and provides no meaningful oracle signal. Although it may compile and execute, it is excluded before adequacy scoring. Treating these as executable tests would silently inflate adequacy-rate denominators without contributing any oracle signal.
4.3 Boundary-Value Adequacy: the Arrange Phase
Boundary-value analysis emphasizes inputs at and around important partitions of the input domain. We define Boundary-Value Adequacy (BVA) as a parameter-specific input-space metric. A boundary category is credited only when it is used for the corresponding parameter in a generated call to the FUT.
Applicable boundary obligations. For each FUT, we infer applicable boundary obligations from its signature and simple source-level constraints. There are 11 boundary categories: null, empty,
Shi et al.
false_value, true_value, zero, negative, below_inferred_bound, at_inferred_bound, above_inferred_bound, same_inferred_bound, and different_inferred_bound.
Signature-derived categories follow the declared type. Reference parameters receive a null obligation, strings and collections or arrays receive an empty obligation, numeric parameters receive zero and negative obligations, and boolean parameters receive obligations for both values. The inferred-bound categories are source-derived, each direct parameter-literal comparison in the FUT body, such as x < 5, introduces below, at, and above obligations for that bound. Different inferred bounds are retained separately. String equality comparisons introduce an equality obligation for each inferred literal and a difference obligation requiring a value unequal to all inferred literals for that parameter. Boundary obligations are tracked separately for each parameter and each inferred bound. If a parameter is compared with multiple constants, each constant introduces its own boundary obligations.
Covered boundary obligations. We parse calls to the target method and classify each actual argument into boundary categories using deterministic rules. Coverage is parameter-specific: covers negative only for the first parameter and zero only for the second.
Argument resolution. Arguments are credited when they resolve to literals, simple local constants, or parameters of single-dispatch helper methods that pass their arguments directly to the FUT call. Values requiring deeper interprocedural reasoning are classified as unresolvable, section 7 discusses the implications of this restriction.
Score definition. Let denote the applicable boundary obligations for parameter in row , and let denote those matched by generated calls. The parameter-level score is
The row-level score averages over parameters with at least one applicable obligation,
4.4 Control-Flow Adequacy: the Act Phase
We define Control-Flow Adequacy (CFA) to assess whether tests adequately exercise control-flow alternatives, measuring whether generated tests check the behavioral alternatives selected by source-level control constructs. CFA measures whether changes in control-flow behavior is detectable by the generated tests, rather than execution coverage alone. A surviving mutant may indicate that the affected construct was not reached or that its changed behavior was not detected by the tests.
Applicable control-flow obligations. For each FUT, we extract if and else-if conditions, ternary conditions, switch case and default groups, catch blocks, and explicit throw statements. Consecutive switch labels sharing the same executable body are treated as one case group to avoid counting the same body multiple times.
Obligation-level control-flow mutants. Our approach is inspired by extreme mutation [39] but targets individual obligations rather than entire methods. Table 4 lists the mutants and per-obligation scoring. An obligation the test never reaches receives 0. When the primary no-op or throw-removal mutant is non-viable, a type-aware fallback is attempted. Obligations without a viable mutation set are excluded.
Table 4. Obligation-level control-flow mutants and per-obligation scoring.
| Construct | Obligation-level mutant | Obligation score |
|---|---|---|
| if/else-if | condition true; false | 0, 0.5, 1 |
| ternary | condition true; false | 0, 0.5, 1 |
| case group | executable case body no-op | 0 or 1 |
| default group | executable default body no-op | 0 or 1 |
| catch block | catch body no-op | 0 or 1 |
| exception path | remove explicit throw | 0 or 1 |
Score definition. Let be the applicable obligations for row and the subset with at least one viable, executed mutant. The representativeness rate and adequacy score are
We report CFA alongside obligation counts and representativeness rates to distinguish high adequacy over a limited subset from high adequacy across most applicable obligations.
4.5 Oracle Strength: the Assert Phase
Branch coverage and standard mutation score both treat a test as adequate regardless of whether its assertions verify the exact resulting behavior. A test can achieve full branch coverage without asserting or asserting only that the function does not throw, leaving its actual result entirely unchecked. Even when meaningful assertions are present, kills can be incidental. A mutation may produce an unexpected exception and PIT records a kill, while the obligation was never intentionally checked. Oracle Strength (OS) addresses this blind spot by scoring each assertion obligation via targeted mutation that isolates changes to the asserted value. For each supported obligation, we generate a mutant using a deterministic rule and observe the test outcome. The obligation is checked when the mutant is killed through an oracle under the classification rules below. A surviving mutant or an incidental failure receives zero credit.
Oracle obligations. We extract obligations along two distinct constructs from each eligible row, which are the observable behaviors of FUTs. For each supported obligation, we generate a mutant using a deterministic rule and observe the test outcome. The obligation is checked when the mutant is killed through an oracle under the classification rules below. A surviving mutant or an incidental failure receives zero credit.
- Return-Obligation Mutation. We replace the returned expression using the first applicable rule in a fixed hierarchy, summarized in Table 5. The fixed selection procedure makes the probe reproducible.
For domain objects, the analysis checks whether the relevant state is observable through accessible fields, accessors, or an overridden equals() method when required by the replacement rule. Returns identified as having unobservable state are excluded from the oracle denominator. Replacing an opaque object with null probes null sensitivity rather than object-content checking and is the weakest probe and tagged separately. We report results by obligation type and, for object returns, by mutation rule.
- Exception-Obligation Mutation. We replace the thrown exception type with a type-compatible alternative, respecting checked-exception constrains. Candidates handled identically by an enclosing catch clause are rejected. For broad original types, such as RuntimeException or Exception, subtype replacements cannot be distinguished by assertions that accept the original type and its subtypes. We tag these obligations subsumed_by_broad_original and exclude them from the headline score.
Shi et al.
Table 5. Return-Obligation mutation rules, applied in priority order.
| Rule | Returned type or expression | Replacement |
|---|---|---|
| 1 | Boolean | negate literal; ! (expr) |
| 2 | Integral / char | ; expr + 1 |
| 3 | Floating-point | literals only |
| 4 | String | "" or sentinel; expr + "MUTATED1" |
| 5 | Collection / map / array | empty single-element instance |
| 6 | Enum | next constant in declaration order |
| 7 | Class token | bound-compatible alternative |
| 8 | Literal null return | type-compatible non-null default |
| 9 | Constructible domain object | defaults-instance (observability required) |
| 10 | Opaque object | null (tagged degenerate_null) |
Exception mutations require an additional outcome rule. When the injected exception type escapes the test, we classify the result as an oracle kill because the original exception was handled but its replacement was not. This provides evidence of type-sensitive exception handling, while a test that accepts a supertype covering both exceptions does not distinguish the replacement and records a survival, correctly reflecting the absence of type discrimination.
Some tests catch and suppress failures raised by their own checks, allowing execution to complete despite a failed check. For example, calls to fail() or throw new AssertionError() may be enclosed in a handler for AssertionError or Throwable that does not rethrow the failure. We exclude these swallowed checks from the assertion analysis and record their count as a diagnostic. The rows remain in the pipeline, but the suppressed checks cannot contribute oracle credit.
Score definition. Let denote the reached oracle obligations with an eligible, executed mutant after the exclusions above. For each obligation , define
The row-level score is
Credit establishes detection of the selected mutation rather than exhaustive verification of the corresponding output.
4.6 Metric Development and Validation
The authors designed the metric definitions, scoring rules, and validation methodology. AI assistance was limited to script implementation. The authors inspected and refined the resulting scripts iteratively.
For BVA, we sampled up to 20 generated-test instances from each combination of boundary subtype, checked/unchecked status, and control/treatment set. This stratified procedure yielded 780 instances across eleven subtypes, with some strata containing fewer than 20 available examples. Two authors independently labeled these instances, achieving agreement with the classifier of and , both within the almost-perfect agreement category of the Landis–Koch scale [32].
For OS, two authors independently audited 100 assertion-mutation cases for mutant validity and correctness of the analyzer's outcome classification. Retaining unsure as a separate category, Gwet's AC1 was 0.94 for mutant validity and 0.87 for outcome classification [20].
5 Experimental Setup
5.1 Benchmark and Execution Protocol
All experiments use OBLIGBENCH (Section 3), comprising 895 treatment functions under test (FUT) and a 700-task low-complexity control set. Each generated test is evaluated in an isolated Maven Java 17 task project. Tests are first compiled and executed, executable tests are then evaluated using PIT mutation score and the three adequacy metrics defined in Section 4. Non-executable tests are retained for failure analysis (Section 6.1) but excluded from adequacy-score averages. The treatment set provides 14,320 test–FUT rows for RQ1-RQ4, while the control set is used only for the complexity comparison in RQ5.
5.2 Prompting Strategies
We compare four generation strategies. All receive the same function-under-test source code and benchmark metadata, and produce JUnit 5 test files under a shared execution contract.
Zero-shot. The zero-shot strategy generates a complete JUnit 5 test file from function source and task metadata alone, without examples, planning, repair, or mutation feedback. It serves as the simplest baseline, measuring what the model produces from source code alone.
Intention-planning. Inspired by plan-and-generate approaches [10, 47, 55], intention-planning separates test planning from implementation, the model first produces a structured plan covering target behavior, inputs, branch cases, and exception conditions, then generates the test file using both the plan and source code. This makes intended obligations explicit before code generation.
Mutation-feedback. Mutation-feedback extends intention-planning with one feedback round, after the initial test is executed, surviving PIT mutants are summarized as a compact feedback object that the model uses to improve the test [11, 13]. We bound the strategy to a single feedback round to keep conditions comparable across models.
Panta [19]. Panta is an external tool-assisted agentic baseline that manages iterative generation and repair at the tool level, configured to one fix iteration per task. It serves as an agentic repair-loop baseline and separates the contribution of prompt strategy from that of tool-level integration.
5.3 Model Suite
We evaluate all four strategies using GPT-5.4 (OpenAI, proprietary large), Gemma-4-31B (RedHatAI, open-weight mid), Gemini-3.6-flash (Google DeepMind, proprietary lightweight), and Qwen3-Coder-30B (Alibaba, open-weight code-specialist). The suite includes proprietary models from OpenAI and Google, an open-weight Gemma checkpoint distributed by RedHatAI, and an open-weight coding model from Alibaba's Qwen family. These models provide variation in model family, accessibility, and specialization. For RQ5, we select GPT-5.4 and Gemma-4-31B as the highest and lowest performers in the suite, bracketing the capability range across the proprietary/open-weight divide. Qwen is excluded due to its elevated failure rate under guided strategies, while Gemini-3.6-flash, as a lightweight intermediate-tier model, would not meaningfully extend this contrast.
5.4 Decoding and Reproducibility
All generation uses temperature 0. The 4 models × 4 strategies over 895 treatment functions yield 14,320 generated test rows, or 3,580 rows per model. Each result row records the model, strategy,
MuTAP [13] and ChatTester [58] are natural candidates for direct comparison but could not be integrated, as their harnesses are tightly coupled to specific model APIs (GPT-3.5 and GPT-4) with fixed structured-output contracts incompatible with our pipeline. Reimplementing them would conflate harness design with prompt-strategy differences, we instead capture their mutation-evidence-as-feedback principle in our mutation-feedback strategy under a shared execution contract.
Shi et al.
Table 6. LLM-generated failed test breakdown. Left: failure categories, percentages relative to the excluded rows. Right: failure rate by strategy and model, percentages relative to the corresponding group size.
| Family | Category | Rows | % |
|---|---|---|---|
| Gen. failure Execution | Panta placeholder stub | 1,073 | 26.9 |
| Uncaught exception | 707 | 17.7 | |
| Wrong oracle | 623 | 15.6 | |
| Timeout / hang | 42 | 1.1 | |
| Other | 12 | 0.3 | |
| Compile | Private access | 446 | 11.2 |
| Unresolved symbol | 432 | 10.8 | |
| Syntax / other | 403 | 10.1 | |
| Type mismatch | 104 | 2.6 | |
| Checked exc. | 52 | 1.3 | |
| Unclassified | 97 | 2.4 |
| Group | Total | Failed | Rate | Dominant |
|---|---|---|---|---|
| Zero-shot | 3,580 | 1,171 | 32.7% | Uncaught exc. |
| Intention-planning | 3,580 | 769 | 21.5% | Wrong oracle |
| Mutation-feedback | 3,580 | 951 | 26.6% | Wrong oracle |
| Panta | 3,580 | 1,100 | 30.7% | Placeholder stub |
| GPT-5.4 | 3,580 | 480 | 13.4% | Uncaught exc. |
| Gemma-4-31B | 3,580 | 628 | 17.5% | Placeholder stub |
| Gemini-3.6-flash | 3,580 | 546 | 15.3% | Placeholder stub |
| Qwen3-Coder-30B | 3,580 | 2,337 | 65.3% | Placeholder stub |
task, raw response, extracted test code, execution status, PIT artifacts, and adequacy-metric artifacts. The analysis stage is deterministic and fully reproducible from those artifacts without rerunning mutations.
6 Experimental Results
6.1 RQ1: To What Extent Do LLMs Generate Compilable and Runnable Tests?
[Objective and design]: Successful compilation and execution are prerequisites for the adequacy analyses in RQ2-RQ4. This RQ therefore examine how often LLM-generated tests compile and run successfully, and characterizes the failures that occur. The experiment covers 895 treatment FUTs, four LLMs, and four generation strategies, yielding 14,320 test-FUT rows (Section 5). We record two success rates, compilation success and execution success, and classify failed tests using the categories defined in Section 4.2. Furthermore, we record the generation failure specially for Panta when it produces a placeholder stub instead of a test. Only successfully executed, non-placeholder tests proceed to adequacy analysis in RQ2-RQ4.
[Results]: Of the 14,320 generated-test rows, 10,329 (72.1%) are eligible for adequacy analysis. The remaining 3,991 rows comprise 1,437 compilation failures, 1,384 execution failures, 1,073 placeholder outputs, and 97 unclassified outcomes. These correspond to 10.0%, 9.7%, 7.5%, and 0.7% of all generated-test rows, demonstrating that LLMs are generally capable of generating compilable and runnable unit tests. Table 6 presents the failure breakdown.
Panta placeholders form the largest individual category, accounting for 26.9% of excluded rows. They contain a vacuous assertion and provide no meaningful test of the FUT. We identify them using the fixed placeholder marker and file-size threshold and exclude them before adequacy scoring.
Wrong-oracle failures account for 623 rows, or 15.6% of excluded rows. Under our regression-testing assumption, these assertions specify expectations inconsistent with the reference implementation. Coverage tools may record the code executed before an assertion fails, so line or branch coverage alone does not reveal whether the generated expectations are consistent with that implementation. This distinction motivates reporting execution outcomes alongside coverage and adequacy scores.
Failure rates vary across strategies and models (Table 6, right). Intention-planning has the lowest strategy-level failure rate (21.5%), followed by mutation-feedback (26.6%), Panta (30.7%), and zero-shot (32.7%). The additional mutation-feedback stage therefore does not yield a lower failure rate than intention-planning in this experiment.
Panta's failures have a distinct composition. Of its 1,100 excluded outputs, 1,073 are placeholders. The remaining 27 are unclassified outcomes, accounting for of all Panta rows. Panta's relatively low compilation and execution failure rates should therefore be considered together with its generation failures, which produce placeholder stubs.
Across models, GPT-5.4 has the lowest failure rate (13.4%), followed by Gemini-3.6-flash (15.3%) and Gemma-4-31B (17.5%). Qwen3-Coder-30B has the highest rate (65.3%), accounting for 58.6% of all excluded rows, whose failures span placeholders, access or reflection errors, incorrect expectations, unresolved symbols or API misuse, and uncaught exceptions.
[RQ-1] [Findings]: (1) LLMs achieve 90.0% compilation and 80.3% execution success, and 72.1% are eligible for adequacy analysis, confirming baseline test-generation capability. (2) Panta placeholder stubs (26.9%) is the leading failure category, while Qwen3-Coder-30B has the highest failure rate (65.3%). (3) Wrong-oracle failures (15.6%) are invisible to coverage tools, representing a silent false-confidence signal. [Insights]: LLM-generated tests are able to fulfill the least requirements for unit testing.
6.2 RQ2: Which Input Boundary Categories Are Systematically Missed?
[Objective and design]: Coverage and mutation scores reveal how much of the FUT a test suite reaches, but not whether its inputs include the boundary values most likely to expose faults, such as null, negative, or empty arguments. This RQ therefore measures how well LLM-generated tests cover the boundary values each FUT is designed to handle, corresponding to the Arrange phase of the AAA pattern. From RQ2 to RQ4, we always evaluate the tests eligible after RQ1, using the same four LLMs under the same four generation strategies. For each FUT, we extract parameter-specific boundary obligations (Section 4.3) and check which of them the tests cover. We report boundary-value adequacy (BVA) by boundary category, model, and prompting strategy.
| GPT-5.4 | Gemma-4-31B | Gemini-3.6-flash | Qwen3-Coder-30B | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | |
| null | 33 | 66 | 69 | 26 | 22 | 33 | 34 | 36 | 31 | 62 | 66 | 32 | 28 | 29 | 28 | 36 |
| empty | 49 | 40 | 55 | 32 | 29 | 39 | 41 | 40 | 39 | 47 | 54 | 31 | 51 | 45 | 50 | 45 |
| false | 97 | 98 | 100 | 85 | 100 | 90 | 92 | 94 | 98 | 100 | 100 | 94 | 93 | 92 | 90 | 77 |
| true | 100 | 98 | 97 | 83 | 97 | 97 | 97 | 97 | 95 | 95 | 97 | 81 | 93 | 92 | 90 | 81 |
| zero | 56 | 76 | 81 | 50 | 48 | 59 | 64 | 47 | 51 | 71 | 78 | 48 | 55 | 60 | 64 | 42 |
| negative | 29 | 43 | 62 | 21 | 9 | 21 | 29 | 15 | 24 | 33 | 42 | 19 | 27 | 28 | 39 | 15 |
| below bound | 64 | 70 | 88 | 63 | 69 | 67 | 76 | 71 | 65 | 65 | 94 | 75 | 60 | 100 | 100 | 62 |
| at bound | 50 | 95 | 100 | 42 | 46 | 56 | 88 | 57 | 50 | 80 | 88 | 50 | 20 | 25 | 100 | 46 |
| above bound | 100 | 95 | 94 | 84 | 85 | 89 | 94 | 93 | 90 | 90 | 100 | 100 | 40 | 75 | 75 | 100 |
| same literal | 79 | 82 | 86 | 86 | 76 | 59 | 100 | 100 | 77 | 77 | 100 | 100 | 100 | 100 | 100 | 84 |
| different literal | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
BVA (%)
0
25
50
75
100
Fig. 1. Boundary-Value Adequacy by category, model, and prompting strategy. ZS = zero-shot, IP = intention-planning, MF = mutation-feedback, PA = Panta.
[Results]: Figure 1 shows substantial variation across boundary categories. Boolean obligations achieve high coverage, averaging 93.13% for true and 93.75% for false. The different_inferred_bound category reaches 100% across all model–strategy combinations. By contrast, negative, null, and empty obligations have coverage of only 23.8%, 34.8%, and 38.8%. These remain the three lowest-coverage categories regardless of strategy or model, and together account for 17,200 of the 22,752 total applicable BVA obligations (75.6%), their low coverage affects a substantial portion of the evaluated input space.
Shi et al.
The BVA score asymmetry reveals a fundamental divide in how LLMs reason about test inputs, the generated tests more consistently include inputs with explicit alternatives or source-level cues. For high-coverage categories, there is usually straightforward specification in the source code about what to test. Boolean boundary values are simply true and false, while the different_inferred_bound is derived from string literals appearing in equality comparisons. However, the low-coverage categories require explicit selection of null references, negative numbers, or empty values, and non-trivial reasoning is required for LLMs to understand what boundary value needs to be covered. Although their applicability can be identified from parameter types, these input boundaries do not appear explicitly in the implementation. In our result, null handling is not specified by the declared type alone, negative requires hypothesising a domain violation on numeric inputs, and empty requires actively constructing a degenerate collection or string rather than the non-empty defaults models prefer. Their low coverage is consistent with a preference for ordinary inputs over boundary and exceptional cases.
Boundary-level analysis also distinguishes inputs that structural coverage may group together. Consider the guard if (obj == null || obj.isEmpty()) . Tests using an empty and a non-empty string can exercise both outcomes of the if statement without supplying null. BVA records the missing null obligation separately from the covered empty-string obligation. This parameter-specific distinction is not expressed by an aggregate branch-coverage or mutation score.
[RQ-2] [Findings]: (1) LLM-generated tests get near-ceiling scores in boundary categories directly inferrable from source code, like boolean (~93%) and different_literal (100%). (2) LLM-generated tests perform poorly across all models and strategies when the boundary value is not directly inferrable from source code, for example null (0.348), negative (0.238), and empty (0.388). [Insights]: LLMs appear to struggle with reasoning about boundary cases whose relevance is not explicit in the method signature or source code.
6.3 RQ3: Which Control-Flow Constructs Are Systematically Blind Spots?
[Objective and design]: Aggregate branch coverage reports how many branches a test suite reaches, but not which kinds of behavior remain unexercised, such as exception-handling paths or default cases. This RQ therefore measures how thoroughly LLM-generated tests exercise the control-flow alternatives, corresponding to the Act phase of the AAA pattern. We evaluate eligible tests using the obligation-level mutations defined in Section 4.4 and report CFA by construct, model, and prompting strategy. We also compare representativeness and detection scores with PIT-based measurements to assess the additional construct-level information provided by our operators.
[Results]: Table 7 compares our proposed mutation operator and PIT on Representative rate and Adequacy score. The table reveals differences between the approaches. First, the our mutation operators represent substantially more obligations for several constructs, particularly explicit throw statements. Second, PIT kill rates far exceed our CFA adequacy scores, making a PIT-only evaluation systematically overconfident. Since PIT represents a smaller subset of obligations, its scores may omit inadequately tested constructs that our operators include.
Representativeness across constructs. CFA Repr. and PIT Repr. expose how well each tool can generate mutants for obligations. Our obligation-level operators achieve 78.1–99.5% representativeness across constructs, while the configured PIT operators represent only 44.7–45.3% of catch and default obligations and 1.4% of explicit throw obligations. Our throw-removal operator raises representativeness to 98.2%, allowing us to assess obligations largely unrepresented by PIT. Their CFA score of 0.475 reveals that many remain inadequately checked while while PIT omits them.
Table 7. Control-flow adequacy by construct. Representativeness is the fraction of obligations with a generated mutant and adequacy score is the fraction killed, each compared across our obligation-level operator (CFA) and PIT. The PIT kill value for explicit throw is omitted because representativeness is below 2%.
| Construct | Items | Representativeness rate | Adequacy score | ||
|---|---|---|---|---|---|
| CFA Repr. | PIT Repr. | CFA Score | PIT Kill | ||
| catch | 3,257 | 0.849 | 0.453 | 0.100 | 0.445 |
| default | 1,500 | 0.781 | 0.447 | 0.312 | 0.449 |
| if | 43,826 | 0.990 | 0.930 | 0.448 | 0.927 |
| case | 13,797 | 0.987 | 0.593 | 0.440 | 0.591 |
| else-if | 6,081 | 0.995 | 0.953 | 0.519 | 0.948 |
| throw (explicit) | 3,850 | 0.982 | 0.014 | 0.475 | — |
| ternary | 4,581 | 0.931 | 0.931 | 0.520 | 0.933 |
| GPT-5.4 | Gemma-4-31B | Gemini-3.6-flash | Qwen3-Coder-30B | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | |
| if | 72 | 63 | 67 | 69 | 22 | 58 | 60 | 55 | 59 | 56 | 57 | 57 | 49 | 15 | 54 | 57 |
| else-if | 75 | 69 | 72 | 76 | 38 | 64 | 66 | 61 | 70 | 62 | 61 | 60 | 65 | 42 | 58 | 57 |
| case | 69 | 40 | 65 | 61 | 13 | 31 | 43 | 46 | 42 | 40 | 41 | 44 | 23 | 44 | 56 | 45 |
| default | 36 | 34 | 35 | 43 | 4 | 28 | 27 | 39 | 30 | 31 | 31 | 34 | 18 | 33 | 20 | 44 |
| catch | 11 | 11 | 13 | 18 | 1 | 8 | 10 | 8 | 10 | 11 | 15 | 8 | 4 | 0 | 4 | 8 |
| throw | 62 | 49 | 56 | 65 | 12 | 44 | 45 | 53 | 47 | 44 | 45 | 49 | 40 | 74 | 52 | 39 |
| ternary | 82 | 71 | 79 | 76 | 51 | 66 | 72 | 69 | 69 | 65 | 66 | 71 | 59 | 0 | 65 | 77 |
| CFA (%) | ||||||||||||||||
| 0 | 25 | 50 | 75 | 100 | ||||||||||||
Fig. 2. Control-flow Adequacy by construct and prompting strategy. ZS = zero-shot, IP = intention-planning, MF = mutation-feedback, PA = Panta.
Adequacy score under different mutation probes. PIT Kill scores exceed CFA scores across the reported constructs. For if, else-if, and ternary expressions, the difference may largely reflect the scoring rules. CFA assigns 0.5 when only one of the forced-true and forced-false mutants is killed, reserving full credit for both killed. A PIT-based indicator that credits an obligation whenever any matched mutant is killed does not distinguish partial from complete coverage of these alternatives.
For other constructs, differences in the represented obligation populations may also contribute. PIT represents fewer catch, default, and case obligations, so its adequacy scores may be calculated over smaller and potentially easier-to-detect subsets. Higher scores on these subsets therefore need not indicate stronger adequacy across the full obligation population. The comparison highlights the importance of interpreting adequacy scores alongside their denominators and representativeness rates.
Persistent gaps in exceptional and fallback behavior. The lowest CFA scores occur for catch blocks (0.100) and default groups (0.312), despite their relatively high representativeness under the targeted operators. Figure 2 shows that these weaknesses recur across models and prompting strategies. Adequately testing exception handlers may require constructing an exceptional execution state or inducing a dependency failure. Testing a switch default requires a selector value outside the explicit case labels. The low scores are consistent with a preference for ordinary inputs and expected execution flows, similar to the boundary-value omissions observed in RQ2.
Shi et al.
[RQ-3] [Findings]: (1) Our proposed obligation-level control-flow mutation achieve 78.1–99.5% representativeness, with a particularly large increase for explicit throw obligations compared with the configured PIT analysis. (2) PIT overstates adequacy on ternary/if/else-if (0.927–0.948) due to inability to score true and false outcomes separately. (3) Our operator reveals LLM-generated tests have poor coverage on catch (0.100) and default (0.312), while performing relatively good in other constructs. [Insights]: (1) Our obligation-level mutation reveals unexercised behavior that PIT cannot measure. (2) LLMs bias toward happy-path inputs, systematically missing out-of-domain conditions such as catch and default.
6.4 RQ4: How Strongly Does the Test Oracle Check Return and Exception Behaviour?
[Objective and design]: Coverage score showing a return or exception line is reached does not establish that its behavior is meaningfully checked. Assertions may constrain only coarse properties, and unexpected execution failures can receive mutant-kill credit incidentally. This RQ therefore measures how effectively LLM-generated tests check the FUT's return values and exception behaviors, corresponding to the Assert phase of the AAA pattern. For each FUT, we mutate its return values and exception obligations (Section 4.5) and check whether the tests' assertions detect the change, excluding incidental kills from unexpected throws and crashes. We report OS over reached obligations with eligible mutants, broken down by return category and exception behavior across models and prompting strategies.
[Results]: Return obligations. Figure 3 shows that boolean obligations score highest at 0.899, followed by enum/class tokens at 0.868 and strings at 0.862. Object-category and numeric obligations score 0.800 and 0.781, while collections score lowest at 0.710. The differences may reflect the properties that assertions need to check. Boolean, enum/class-token, and string results can often be checked directly through some limited set of value or equality assertions. Collection results may require checks on size, membership, or contents, and numeric perturbations can survive coarse assertions, such as positivity or nonzero checks.
| GPT-5.4 | Gemma-4-31B | Gemini-3.6-flash | Qwen3-Coder-30B | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | ZS | IP | MF | PA | |
| boolean | 93.3 | 96.1 | 95.9 | 84.5 | 94.7 | 94.9 | 95.5 | 77.0 | 95.7 | 94.8 | 94.0 | 79.1 | 94.4 | 98.6 | 98.4 | 66.5 |
| numeric | 100.0 | 94.3 | 100.0 | 63.3 | 73.5 | 81.2 | 90.9 | 57.1 | 89.1 | 94.6 | 96.1 | 70.9 | 80.0 | 94.1 | 93.8 | 39.7 |
| string | 99.7 | 61.2 | 100.0 | 90.1 | 61.0 | 100.0 | 81.9 | 94.5 | 99.4 | 99.7 | 99.7 | 90.9 | 55.6 | 71.4 | 100.0 | 71.6 |
| collection | 91.7 | 78.8 | 80.0 | 80.0 | 74.5 | 70.4 | 66.1 | 80.0 | 80.0 | 62.3 | 65.6 | 54.5 | 77.8 | 62.5 | 55.0 | 47.1 |
| enum / class | 100.0 | 100.0 | 100.0 | 58.3 | 100.0 | 100.0 | 100.0 | 58.3 | 100.0 | 100.0 | 100.0 | 58.3 | 100.0 | 100.0 | 100.0 | 100.0 |
| object | 90.4 | 88.8 | 90.2 | 77.4 | 80.6 | 74.2 | 80.8 | 58.0 | 84.7 | 84.1 | 82.4 | 71.3 | 77.3 | 93.6 | 93.2 | 66.9 |
| exception | 24.7 | 83.2 | 79.4 | 66.7 | 43.1 | 87.2 | 87.6 | 53.7 | 20.5 | 84.4 | 83.5 | 52.9 | 18.2 | 84.0 | 76.2 | 43.4 |
OS (%)
0
25
50
75
100
Fig. 3. Oracle Strength by return category, model, and prompting strategy. ZS = zero-shot, IP = intention-planning, MF = mutation-feedback, PA = Panta.
Object-category OS further varies with the property probed. Table 8 reports the four object-category mutation rules with scorable treatment obligations. Null-compatible replacement scores 0.912, followed by opaque-object null substitution at 0.827 and default-constructor replacement at 0.766. Concrete-constructor-defaults mutations score only 0.325. These mutations replace constructor arguments with default values, probing whether tests distinguish the resulting object
Table 8. Oracle Strength for object-category mutation rules with scorable treatment obligations.
| Mutation rule | Scorable | Checked | Score |
|---|---|---|---|
| Null-compatible replacement | 442 | 403 | 0.912 |
| Domain obj.: default constructor | 445 | 341 | 0.766 |
| Opaque: degenerate null | 1,620 | 1,339 | 0.827 |
| Domain obj.: concrete defaults | 163 | 53 | 0.325 |
state. Their low adequacy rate suggests that generated tests struggle to meaningfully check object contents beyond coarser properties such as null.
Exception obligations. Exception obligations score 0.625, slightly below return obligations, average 0.842. Exception-type substitution requires tests to distinguish the original exception from its replacement. Broad assertions, such as assertThrows(Exception.class, ...), may accept both types and therefore leave the obligation unchecked under our criterion. The lower score suggests that generated tests less consistently check specific exception behavior.
This score applies only to reached obligations with eligible mutants. Exception obligations not reached by the original test are excluded from the OS denominator, since their oracle strength cannot be assessed without first exercising the corresponding behavior.
[RQ-4] [Findings]: (1) Return-category OS ranges from 0.710 for collections to 0.899 for booleans. Object-category OS is 0.800, but concrete-constructor-defaults obligations score only 0.325. (2) Reached and eligible exception obligations score 0.625, with substantial variation across generation strategies. [Insights]: (1) LLMs' capability to generate meaningful assertions for return value vary on type. Object returns require field-level assertions that LLMs rarely produce, defaulting to coarse checks. (2) The improvements in out-of-domain coverage may help improve effective exception OS.
6.5 RQ5: Does Complexity Impact the Systematic Weaknesses?
[Objective and design]: The preceding results identify recurring adequacy gaps in complex functions. This RQ examines whether similar gaps also occur in simpler code. We run test generation on a 700-function low-complexity control set with GPT-5.4 and Gemma-4-31B selected in Section 5.3 using the same four generation strategies and adequacy analyses. Control functions fall below both complexity thresholds defined in Section 3. We compare BVA, CFA, and OS between the complex and control sets per obligation category, if a category remains weak in both sets, complexity alone is unlikely to explain the gap.
[Results]: We present subcategory adequacy scores for both models across all four strategies in Figure 4.
Boundary-value adequacy. Figure 4 shows that several patterns from RQ2 persist across complexity levels. Boolean values and at_inferred_bound obligations receive high coverage in both sets, while negative and empty inputs remain among the least covered categories across models and strategies. These recurring gaps show that the weaknesses are not confined to complex functions and suggest that complexity alone does not explain them.
Null coverage is higher in the control set, indicating that some boundary categories are better covered in simpler functions. However, the control set contains only 74 applicable nullable parameters, limiting how broadly this difference can be interpreted. Overall, the comparison supports the persistence of specific boundary-value blind spots across complexity levels, rather than a uniform effect of complexity on all categories.
Control-flow adequacy. The control set contains no applicable catch-block obligations, so the corresponding cells provide no basis for comparison. For if and else-if, several control-set
Shi et al.
| GPT-5.4 | Gemma-4-31B | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ZS Treat | Ctrl | IP Treat | Ctrl | MF Treat | Ctrl | PA Treat | Ctrl | ZS Treat | Ctrl | IP Treat | Ctrl | MF Treat | Ctrl | PA Treat | Ctrl | |
| null (BVA) | 33 | 72 | 66 | 100 | 69 | 95 | 26 | 68 | 22 | 64 | 33 | 94 | 34 | 94 | 36 | 68 |
| negative (BVA) | 29 | 87 | 43 | 79 | 62 | 81 | 21 | 59 | 9 | 36 | 21 | 67 | 29 | 65 | 15 | 49 |
| empty (BVA) | 49 | 86 | 40 | 71 | 55 | 64 | 32 | 20 | 29 | 82 | 39 | 80 | 41 | 78 | 40 | 65 |
| zero (BVA) | 56 | 84 | 76 | 71 | 81 | 76 | 50 | 51 | 48 | 58 | 59 | 65 | 64 | 66 | 47 | 60 |
| true/false (BVA) | 98 | 100 | 97 | 94 | 99 | 100 | 84 | 100 | 99 | 94 | 94 | 100 | 95 | 100 | 96 | 82 |
| at bound (BVA) | 50 | 92 | 95 | 97 | 100 | 100 | 42 | 87 | 46 | 90 | 56 | 97 | 88 | 100 | 57 | 90 |
| if (CFA) | 72 | 41 | 63 | 46 | 67 | 47 | 69 | 97 | 23 | 46 | 58 | 46 | 60 | 46 | 55 | 76 |
| else-if (CFA) | 75 | 42 | 69 | 48 | 72 | 46 | 76 | 100 | 40 | 48 | 64 | 48 | 66 | 48 | 61 | 48 |
| case (CFA) | 69 | 100 | 40 | 100 | 65 | 100 | 61 | 100 | 13 | 100 | 31 | 100 | 43 | 100 | 46 | 100 |
| ternary (CFA) | 82 | 75 | 71 | 93 | 79 | 93 | 76 | 100 | 51 | 86 | 66 | 93 | 72 | 93 | 69 | 100 |
| default (CFA) | 36 | 100 | 34 | 100 | 35 | 100 | 43 | 100 | 4 | 100 | 28 | 100 | 27 | 100 | 39 | 100 |
| catch (CFA) | 11 | NA | 11 | NA | 13 | NA | 18 | NA | 1 | NA | 8 | NA | 10 | NA | 8 | NA |
| throw (CFA) | 62 | 100 | 49 | 100 | 56 | 100 | 65 | 100 | 12 | 36 | 44 | 100 | 45 | 100 | 53 | 98 |
| boolean (OS) | 93 | 100 | 96 | 98 | 96 | 100 | 85 | 100 | 95 | 100 | 95 | 100 | 95 | 100 | 77 | 100 |
| numeric (OS) | 100 | 100 | 94 | 100 | 100 | 100 | 63 | 100 | 73 | 100 | 81 | 100 | 91 | 100 | 57 | 100 |
| string (OS) | 100 | 100 | 61 | 100 | 100 | 100 | 90 | 99 | 61 | 99 | 100 | 100 | 82 | 100 | 95 | 99 |
| collection (OS) | 92 | 100 | 79 | 100 | 80 | 100 | 80 | 100 | 74 | 88 | 70 | 88 | 66 | 100 | 80 | 88 |
| enum / class (OS) | 100 | NA | 100 | NA | 100 | NA | 58 | NA | 100 | NA | 100 | NA | 100 | NA | 58 | NA |
| object (OS) | 90 | 100 | 89 | 100 | 90 | 100 | 77 | 100 | 81 | 100 | 74 | 100 | 81 | 100 | 58 | 100 |
| exception (OS) | 25 | 73 | 83 | 100 | 79 | 100 | 67 | 100 | 43 | 23 | 87 | 100 | 88 | 100 | 54 | 100 |
Adequacy (%)
0
25
50
75
100
Fig. 4. Adequacy of Control and Treatment by subcategory, model, and prompting strategy. ZS = zero-shot, IP = intention-planning, MF = mutation-feedback, PA = Panta.
configurations have low CFA scores despite the functions' low structural complexity. This indicates that simpler control flow does not necessarily receive adequate behavioral checking.
Some control-flow comparisons are based on small obligation populations. The reported else-if comparisons include only 26-29 scorable items, while several other construct categories contain fewer than ten. Scores in these categories can therefore change substantially with the outcomes of a few obligations and should be interpreted cautiously.
Oracle strength. Return categories with high treatment OS remain strong in control. However, control provides limited evidence for the remaining categories. Object OS covers only 87 scorable obligations from 11 methods under one null-replacement rule, while the lower-performing treatment rules are absent. Enum/class has no scorable control obligations, and exception scores cover only 13 distinct methods. Thus, the comparison confirms strong checking in the well-supported return categories but no clear conclusion can be drawn for the weak categories.
[RQ-5] [Findings]: (1) Negative and empty inputs remain weak BVA categories in both treatment and control functions. (2) Low-complexity FUTs have fewer obligations to check, limiting interpretability. [Insights]: (1) For input boundary values present in both sets, the same blind-spot pattern holds across complexity levels, confirming that the blind spot patterns we found are a property of LLM test generation, not of code complexity alone.
7 Threats to Validity
Construct validity. BVA uses deterministic static analysis, and of the target-call arguments cannot be resolved by the supported analysis rules. We report this proportion explicitly to distinguish the scope of input resolution from the adequacy of the generated tests. The manual validation described in Section 4.6 assesses the reliability of the resulting classifications.
Internal validity. The choice of CFA mutation operators may influence the measured adequacy of different control-flow constructs. We address this through deterministic, construct-specific transformations applied uniformly across models, strategies, and complexity sets. We also report representativeness rates alongside adequacy scores, distinguishing limitations in mutant availability from failures to detect represented behavioral changes.
External validity. The blind-spot patterns are consistent across all four models from different families and four different strategies, reducing the risk that any single model or prompt design drives the results. Results may differ for very small models, domain-specialized code models, or prompt designs not studied here. All generation uses temperature 0, results under non-zero temperature may show higher variance.
8 Conclusion
We propose BLINDSPOTEVAL, an obligation-based evaluation framework for LLM-generated unit tests, evaluating tests through Boundary-Value Adequacy, Control-Flow Adequacy, and Oracle Strength, complemented by execution reliability and failure-mode analysis. We also introduce OBLIGBENCH, a complexity-stratified Java benchmark of 895 complex and 700 low complexity FUTs with source-side obligation annotations. Applied to 14,320 generated tests across four LLMs and four prompting strategies on ObligBench treatment set, BLINDSPOTEVAL reveals systematic blind spots that aggregate coverage and mutation scores do not distinguish.
Execution reliability is the first barrier, with 72.1% of generated-test rows eligible for adequacy analysis. Wrong-oracle failures account for 15.6% of excluded rows, demonstrating that executed code can receive coverage credit even when generated assertions fail. Beyond execution, the dominant weakness is out-of-domain value reasoning and bias to happy path. Boolean and inferred-bound BVA categories are near-ceiling across all models and strategies, whereas null, negative, and empty obligations reach only 34.8%, 23.8%, and 38.8%, for which the boundary values are not directly inferrable from the source code. These omissions, together with low CFA for catch blocks (0.100) and default groups (0.312), are consistent with a happy-path preference in generated tests.
Obligation-based control-flow mutations broaden construct-level evaluation, particularly for explicit throw obligations, which achieve 98.2% representativeness compared with 1.4% under the configured PIT analysis. Separate forced-outcome mutations also distinguish partial checking of conditional alternatives that an any-kill indicator does not express. Oracle Strength further distinguishes meaningful checking from incidental execution failures. Although return obligations score 0.842 overall, concrete-constructor-defaults obligations score only 0.325, exposing a pronounced gap in detecting changes to constructed object state. Exception obligations score 0.625, further distinguishing the ability to reach exceptional behavior from the ability to check it.
The low-complexity comparison shows that selected boundary-value and control-flow blind spots also occur in simpler functions, while well-supported OS categories remain strongly checked across both complexity sets. Across the study, obligation-level profiles identify the input categories, control-flow constructs, and observable behaviors that require stronger testing.
Together, these findings motivate shifting from aggregate coverage and mutation scores to construct-level adequacy profiles that reveal where generated tests leave behavioral obligations unchecked and guide targeted improvements.
Shi et al.
Data Availability
The ObligBench Benchmark, mutation tools, evaluation scripts, and results for BlindSpotEval are available at https://github.com/rabbit0v0/Beyond-Coverage-and-Mutation-A-Blind-Spot-Analysis-of-LLM-Generated-Unit-Tests/.
References
[1] Nadia Alshahwan, Jubin Chheda, Anastasia Finogenova, Beliz Gokkaya, Mark Harman, Inna Harper, Alexandru Marginean, Shubho Sengupta, and Eddy Wang. 2024. Automated Unit Test Improvement using Large Language Models at Meta. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering (FSE). 185–196. doi:10.1145/3663529.3663839
[2] Paul Ammann and Jeff Offutt. 2016. Introduction to Software Testing (2nd ed.). Cambridge University Press.
[3] Saswat Anand, Edmund K. Burke, Tsong Yueh Chen, John Clark, Myra B. Cohen, Wolfgang Grieskamp, Mark Harman, Mary Jean Harrold, and Phil McMinn. 2013. An Orchestrated Survey of Methodologies for Automated Software Test Case Generation. Journal of Systems and Software 86, 8 (2013), 1978–2001.
[4] James H. Andrews, Lionel C. Briand, and Yvan Labiche. 2005. Is Mutation an Appropriate Tool for Testing Experiments?. In Proceedings of the 27th International Conference on Software Engineering (ICSE). 402–411. doi:10.1145/1062455.1062530
[5] Earl T. Barr, Mark Harman, Phil McMinn, Muzammil Shahbaz, and Shin Yoo. 2015. The Oracle Problem in Software Testing: A Survey. IEEE Transactions on Software Engineering 41, 5 (2015), 507–525. doi:10.1109/TSE.2014.2372785
[6] Moritz Beller, Georgios Gousios, Annibale Panichella, and Andy Zaidman. 2015. When, How, and Why Developers (Do Not) Test in Their IDEs. In Proceedings of the 10th Joint Meeting on Foundations of Software Engineering (ESEC/FSE). ACM, 179–190.
[7] Cristian Cadar, Daniel Dunbar, and Dawson R. Engler. 2008. KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs. In Proceedings of the 8th USENIX Symposium on Operating Systems Design and Implementation (OSDI). 209–224.
[8] G. Ann Campbell. 2018. Cognitive Complexity: A New Way of Measuring Understandability. Technical Report. SonarSource. https://www.sonarsource.com/docs/CognitiveComplexity.pdf.
[9] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harrison Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating Large Language Models Trained on Code. arXiv preprint arXiv:2107.03374 (2021).
[10] Yinghao Chen, Zehao Hu, Chen Zhi, Junxiao Han, Shuiguang Deng, and Jianwei Yin. 2024. ChatUniTest: A Framework for LLM-Based Test Generation. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering (FSE 2024 Demonstrations). 572–576.
[11] CodiumAI. 2024. CoverAgent: An AI-Powered Tool for Automated Test Generation and Code Coverage Enhancement. https://github.com/qodo-ai/qodo-cover.
[12] Henry Coles, Thomas Laurent, Christopher Henard, Mike Papadakis, and Anthony Ventresque. 2016. PIT: A Practical Mutation Testing Tool for Java. In Proceedings of the 25th International Symposium on Software Testing and Analysis (ISSTA). 449–452. doi:10.1145/2931037.2948707
[13] Arghavan Moradi Dakhel, Amin Nikanjam, Vahid Majdinasab, Foutse Khomh, and Michel C. Desmarais. 2024. Effective Test Generation Using Pre-trained Large Language Models and Mutation Testing. Information and Software Technology 171 (2024), 107468. doi:10.1016/j.infsof.2024.107468
[14] Richard A. DeMillo, Richard J. Lipton, and Frederick G. Sayward. 1978. Hints on Test Data Selection: Help for the Practicing Programmer. Computer 11, 4 (1978), 34–41.
[15] Gordon Fraser and Andrea Arcuri. 2011. EvoSuite: Automatic Test Suite Generation for Object-Oriented Software. In Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering (ESEC/FSE). 416–419. doi:10.1145/2025113.2025179
[16] Gordon Fraser and Andrea Arcuri. 2014. A Large-Scale Evaluation of Automated Unit Test Generation Using EvoSuite. ACM Transactions on Software Engineering and Methodology 24, 2 (2014), 8:1–8:42. doi:10.1145/2685612
[17] Gordon Fraser and Andrea Arcuri. 2015. Achieving Scalable Mutation-based Generation of Whole Test Suites. Empirical Software Engineering 20, 3 (2015), 783–812. doi:10.1007/s10664-013-9299-z
[18] John B. Goodenough and Susan L. Gerhart. 1975. Toward a Theory of Test Data Selection. IEEE Transactions on Software Engineering 1, 2 (1975), 156–173.
[19] Sijia Gu, Noor Nashid, and Ali Mesbah. 2026. LLM Test Generation via Iterative Hybrid Program Analysis. In Proceedings of the 48th International Conference on Software Engineering (ICSE). 655–666. arXiv:2503.13580 doi:10.1145/3744916.3764553
[20] Kilem Li Gwet. 2008. Computing Inter-Rater Reliability and Its Variance in the Presence of High Agreement. Brit. J. Math. Statist. Psych. 61, 1 (2008), 29–48. doi:10.1348/000711006X126600
[21] Mark Harman and Bryan F. Jones. 2001. Search-based software engineering. Information and Software Technology 43, 14 (2001), 833–839.
[22] Soneya Binta Hossain, Matthew B. Dwyer, Sebastian G. Elbaum, and Anh Nguyen-Tuong. 2023. Measuring and Mitigating Gaps in Structural Testing. In Proceedings of the 45th International Conference on Software Engineering (ICSE). 1712–1723. doi:10.1109/ICSE48619.2023.00147
[23] Dong Huang, Jie M. Zhang, Mark Harman, Qianru Zhang, Mingzhe Du, and See-Kiong Ng. 2025. Benchmarking LLMs for Unit Test Generation from Real-World Functions. arXiv preprint arXiv:2508.00408 (2025).
[24] Laura Inozemtseva and Reid Holmes. 2014. Coverage is not strongly correlated with test suite effectiveness. In Proceedings of the 36th International Conference on Software Engineering (ICSE). 435–445. doi:10.1145/2568225.2568271
[25] Gunel Jahangirova, David Clark, Mark Harman, and Paolo Tonella. 2016. Test oracle assessment and improvement. In Proceedings of the 25th International Symposium on Software Testing and Analysis (ISSTA). 247–258. doi:10.1145/2931037.2931062
[26] Kush Jain, Gabriel Synnaeve, and Baptiste Rozière. 2025. TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark. In Proceedings of the 13th International Conference on Learning Representations (ICLR).
[27] Yue Jia and Mark Harman. 2011. An Analysis and Survey of the Development of Mutation Testing. IEEE Transactions on Software Engineering 37, 5 (2011), 649–678. doi:10.1109/TSE.2010.62
[28] Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2024. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?. In Proceedings of the 12th International Conference on Learning Representations (ICLR).
[29] René Just, Darioush Jalali, and Michael D. Ernst. 2014. Defects4J: A Database of Existing Faults to Enable Controlled Testing Studies for Java Programs. In Proceedings of the 2014 International Symposium on Software Testing and Analysis (ISSTA). ACM, 437–440.
[30] René Just, Darioush Jalali, Laura Inozemtseva, Michael D. Ernst, Reid Holmes, and Gordon Fraser. 2014. Are Mutants a Valid Substitute for Real Faults in Software Testing?. In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE). 654–665. doi:10.1145/2635868.2635929
[31] James C. King. 1976. Symbolic Execution and Program Testing. Commun. ACM 19, 7 (1976), 385–394.
[32] J. Richard Landis and Gary G. Koch. 1977. The Measurement of Observer Agreement for Categorical Data. Biometrics 33, 1 (1977), 159–174. doi:10.2307/2529310
[33] Caroline Lemieux, Jeevana Priya Inala, Shuvendu K. Lahiri, and Siddhartha Sen. 2023. CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models. In Proceedings of the 45th International Conference on Software Engineering (ICSE). IEEE, 919–931.
[34] Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. 2023. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation. In Advances in Neural Information Processing Systems, Vol. 36.
[35] Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, et al. 2024. StarCoder 2 and The Stack v2: The Next Generation. arXiv preprint arXiv:2402.19173 (2024).
[36] Thomas J. McCabe. 1976. A Complexity Measure. IEEE Transactions on Software Engineering 2, 4 (1976), 308–320. doi:10.1109/TSE.1976.233837
[37] Gerard Meszaros. 2007. xUnit Test Patterns: Refactoring Test Code. Addison-Wesley.
[38] Glenford J. Myers, Corey Sandler, and Tom Badgett. 2011. The Art of Software Testing (3rd ed.). John Wiley & Sons.
[39] Rainer Niedermayr, Elmar Juergens, and Stefan Wagner. 2016. Will My Tests Tell Me If I Break This Code?. In Proceedings of the International Workshop on Continuous Software Evolution and Delivery (CSED). 23–29. doi:10.1145/2896941.2896944
[40] A. Jefferson Offutt and Roland H. Untch. 2001. Mutation 2000: Uniting the Orthogonal. In Mutation Testing for the New Century. Kluwer Academic Publishers, 34–44.
[41] Roy Osherove. 2014. The Art of Unit Testing (2nd ed.). Manning Publications.
[42] Thomas J. Ostrand and Marc J. Balcer. 1988. The Category-Partition Method for Specifying and Generating Functional Tests. Commun. ACM 31, 6 (1988), 676–686. doi:10.1145/62959.62964
[43] Carlos Pacheco, Shuvendu K. Lahiri, Michael D. Ernst, and Thomas Ball. 2007. Feedback-Directed Random Test Generation. In Proceedings of the 29th International Conference on Software Engineering (ICSE). IEEE, 75–84.
[44] Annibale Panichella, Fitsum Meshesha Kifetew, and Paolo Tonella. 2018. Automated Test Case Generation as a Many-Objective Optimisation Problem with Dynamic Selection of the Targets. IEEE Transactions on Software Engineering 44, 2 (2018), 122–158. doi:10.1109/TSE.2017.2663435
[45] Mike Papadakis, Marinos Kintis, Jie Zhang, Yue Jia, Yves Le Traon, and Mark Harman. 2019. Mutation Testing Advances: An Analysis and Survey. Advances in Computers 112 (2019), 275–378. doi:10.1016/bs.adcom.2018.03.015
[46] Mike Papadakis, Donghwan Shin, Shin Yoo, and Doo-Hwan Bae. 2018. Are mutation scores correlated with real fault detection?: a large scale empirical study on the relationship between mutants and real faults. In Proceedings of the 40th
Shi et al.
International Conference on Software Engineering (ICSE). 537–548. doi:10.1145/3180155.3180183
[47] Gabriel Ryan, Siddhartha Jain, Mingyue Shang, Shiqi Wang, Xiaofei Ma, Murali Krishna Ramanathan, and Baishakhi Ray. 2024. Code-Aware Prompting: A Study of Coverage-Guided Test Generation in Regression Setting using LLM. Proceedings of the ACM on Software Engineering 1, FSE (2024), 951–971. doi:10.1145/3643769
[48] Max Schäfer, Sarah Nadi, Aryaz Eghbali, and Frank Tip. 2024. An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation. IEEE Transactions on Software Engineering 50, 1 (2024), 85–105. doi:10.1109/TSE.2023.3334955
[49] David Schuler and Andreas Zeller. 2013. Checked Coverage: An Indicator for Oracle Quality. Software Testing, Verification and Reliability 23, 7 (2013), 531–551. doi:10.1002/stvr.1497
[50] Sina Shamshiri, René Just, José Miguel Rojas, Gordon Fraser, Phil McMinn, and Andrea Arcuri. 2015. Do Automatically Generated Unit Tests Find Real Faults? An Empirical Study of Effectiveness and Challenges (T). In Proceedings of the 30th IEEE/ACM International Conference on Automated Software Engineering (ASE). 201–211. doi:10.1109/ASE.2015.86
[51] Weijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang, Daogao Liu, Terra Blevins, Danqi Chen, and Luke Zettlemoyer. 2024. Detecting Pretraining Data from Large Language Models. In Proceedings of the 12th International Conference on Learning Representations (ICLR).
[52] Mohammed Latif Siddiq, Joanna Cecilia da Silva Santos, Ridwanul Hasan Tanvir, Noshin Ulfat, Fahmid Al Rifat, and Vinicius Carvalho Lopes. 2024. Using Large Language Models to Generate JUnit Tests: An Empirical Study. In Proceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering (EASE). 313–322. doi:10.1145/3661167.3661216
[53] Yutian Tang, Zhijie Liu, Zhichao Zhou, and Xiapu Luo. 2024. ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generation. IEEE Transactions on Software Engineering 50, 6 (2024), 1340–1359. doi:10.1109/TSE.2024.3382365
[54] Frank Tip, Jonathan Bell, and Max Schäfer. 2025. LLMorpheus: Mutation Testing Using Large Language Models. IEEE Transactions on Software Engineering 51, 6 (2025), 1645–1665. doi:10.1109/TSE.2025.3562025
[55] Michele Tufano, Dawn Drain, Alexey Svyatkovskiy, Shao Kun Deng, and Neel Sundaresan. 2020. Unit Test Case Generation with Transformers. arXiv preprint arXiv:2009.05617 (2020).
[56] Oscar Luis Vera-Pérez, Benjamin Danglot, Martin Monperrus, and Benoit Baudry. 2019. A Comprehensive Study of Pseudo-tested Methods. Empirical Software Engineering 24, 3 (2019), 1195–1225. doi:10.1007/s10664-018-9653-2
[57] Lin Yang, Chen Yang, Shutao Gao, Weijing Wang, Bo Wang, Qihao Zhu, Xiao Chu, Jianyi Zhou, Guangtai Liang, Qianxiang Wang, and Junjie Chen. 2024. On the Evaluation of Large Language Models in Unit Test Generation. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (ASE). 1607–1619. doi:10.1145/3691620.3695529
[58] Zhiqiang Yuan, Mingwei Liu, Shiji Ding, Kaixin Wang, Yixuan Chen, Xin Peng, and Yiling Lou. 2024. Evaluating and Improving ChatGPT for Unit Test Generation. Proceedings of the ACM on Software Engineering 1, FSE (2024), 1703–1726. doi:10.1145/3660783
[59] Junda Zhao, Shurui Zhou, and Eldan Cohen. 2026. Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study). Proceedings of the ACM on Software Engineering 3, ISSTA (2026), 30–53. doi:10.1145/3832093
[60] Hong Zhu, Patrick A. V. Hall, and John H. R. May. 1997. Software Unit Test Coverage and Adequacy. Comput. Surveys 29, 4 (1997), 366–427.