Manuscript Offprint
arXiv:2610.33708Covered Is Not Checked: Which Branch Outcomes Would Your Tests Notice?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
MD NAFIU RAHMAN*, Brac University, Bangladesh
CEMIL CANBAZ*, Bilkent University, Türkiye
SONEYA BINTA HOSSAIN, The University of Texas at Dallas, USA
Code coverage reports which parts of a program the tests run. It does not report whether the tests would detect a fault in that code, so a suite can reach high coverage while its assertions check little of the behavior it runs. Checked coverage narrows coverage to the code that influences values examined by test oracles, and it finds that influence with dynamic program slicing. Slicing is expensive, Java dynamic slicers lag behind current language versions and struggle with complex programs, and the difficulty grows as checked coverage moves from statements to stronger structural criteria such as object branch coverage or Modified Condition/Decision Coverage (MC/DC).
We present Veritas, a different way to determine whether covered behavior is actually checked, without dynamic slicing. Rather than infer checking through dependence, Veritas tests it directly. We focus on object branch coverage (OBC), a stronger structural criterion that operates on compiled code and has been shown to provide fault-detection effectiveness comparable to source-level MC/DC, a criterion required for the highest assurance level of DO-178C. For each covered object-branch outcome, Veritas forces the decision to take the opposite outcome and observes whether the existing tests detect the change. An outcome is considered checked only when the mutation changes its execution, a previously passing test fails, and the failure can be attributed to that outcome. Veritas therefore separates behavior that is merely executed from behavior for which the test suite provides concrete evidence of fault detection, while avoiding the dynamic program analysis on which previous checked-coverage techniques depend.
We evaluated Veritas on eleven open-source Java projects with 51,382 object-branch outcomes. First, 18% of covered outcomes can be changed without causing any test to fail, showing that coverage alone can hide important testing weaknesses. Second, Veritas helps explain why mutants survive. About half are never activated by the existing inputs; the rest are activated but the tests do not detect the change. Third, compared with slicing-based checked coverage, Veritas finds 4,763 cases where tests detect a change that slicing does not credit, while 19% of the cases slicing considers checked are not detected when changed. Finally, the gap reflects test effectiveness: as assertions are weakened, the gap grows and fault detection falls on every project, and code locations controlled by these weakly checked outcomes are 12.4–54.7 percentage points (pp) more likely to have an undetected independent fault than locations controlled by checked outcomes.
CCS Concepts: • Software and its engineering → Software testing and debugging.
Additional Key Words and Phrases: checked coverage, object branch coverage, mutation testing, test oracles
ACM Reference Format:
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain. 2026. Covered Is Not Checked: Which Branch Outcomes Would Your Tests Notice?. 1, 1 (October 2026), 20 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
1 Introduction
Structural coverage is a key part of software testing. It is widely used to check whether a test suite exercises the program [4], and stronger criteria are required in high-assurance settings.
These authors contributed equally to this work.
Authors' Contact Information: Md Nafiu Rahman, nafiu.rahman@bracu.ac.bd, Brac University, Dhaka, Bangladesh; Cemil Canbaz, cemil.canbaz@ug.bilkent.edu.tr, Bilkent University, Ankara, Türkiye; Soneya Binta Hossain, sbhossain@utdallas.edu, The University of Texas at Dallas, Richardson, Texas, USA.
- ACM XXXX-XXXX/2026/10-ART https://doi.org/10.1145/nnnnnnn.nnnnnnn
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
For example, DO-178C requires Modified Condition/Decision Coverage (MC/DC) [7] for Level A airborne software [27]. However, coverage only tells us whether code was executed. A test can execute a statement or branch and still fail to detect that its behavior is wrong. This distinction matters in practice: coverage is not strongly correlated with fault detection when suite size is controlled [17], suites with high coverage can still miss many faults [30], and assertions are strongly linked to fault-detection effectiveness [42]. The central question is which of these behaviors the tests would actually notice if they were wrong.
Checked coverage was introduced to address this blind spot. Schuler and Zeller count a statement as checked when it appears in a dynamic backward slice from a test assertion [28, 29]; Hossain et al. extended the idea to stronger structural criteria, including object branch coverage, and defined the difference between coverage and checked coverage as the coverage gap [15]. This is an important step because it brings the test oracle into coverage measurement. However, it also leaves two limitations. First, dependence is not detection: a covered element can influence a value examined by an assertion even when changing that element would not make the test fail. Second, computing checked coverage relies on program slicing [40], especially dynamic slicing [1], so its applicability is tied to a heavyweight program analysis that must support the program, libraries, and runtime being tested. The available Java dynamic slicers are also outdated. JavaSlicer (2008) still requires JDK 6 or 7, does not support Java 8 language features, cannot reconstruct dependencies across threads, and cannot trace several native and core-library methods [12, 13]. Slicer4J (2021) improves multithreading and framework support, but remains tied to Soot's Java 9 support, cannot slice dynamically generated classes, requires debug information for source-level mapping, and models framework and native methods using static summaries that can over-approximate dependencies [2]. Table 7 shows how these limitations manifest in practice in our study, including applicability, usable coverage, memory cost, and the substantial disagreement between dependence-based checking and actual test detection. These limitations become more consequential as checked coverage is applied beyond statements to richer structural criteria.
(a) Code under test
// Interval [start, end) boolean overlaps(Interval o) { return o.start < end && start < o.end; }
boolean adjacent(Interval o) { return (end == o.start) // d1 || o.end == start) // d2 && !overlaps(o); // d3 }
(b) Original test
// Covers 4 of the 6 outcomes @Test void adjacency() { var a = new Interval(0, 10); // touching assertTrue(a.adjacent( new Interval(10, 20)); // overlapping assertFalse(a.adjacent( new Interval(5, 20)); }
(c) Added test
// Covers no new outcome @Test void separatedIntervals() { var a = new Interval(0, 10); // apart assertFalse(a.adjacent( new Interval(15, 20)); }
Fig. 1. (a) The adjacent method, with the conditions of and boxed. (b) Its original test covers the false outcomes of and , but it still passes when either of them is forced to true. (c) The added test uses a new input (boxed) that detects both changes without covering any new branch outcome.
Figure 1 illustrates a limitation of checked coverage. The method adjacent returns true when two intervals touch ( or ) without overlapping ( ). At the object-code level, ignoring the two decisions inside overlaps, these three decisions correspond to six branch outcomes, two for each decision. The original test covers four of the six branch outcomes, including the false outcomes of and , and slicing-based checked coverage marks all four as checked. Yet when either or is forced to true on the overlapping input, the execution changes but the test still passes.
Thus, these outcomes are both covered and considered checked, even though the existing test does not detect a change to their behavior.
The added test separatedIntervals exposes the difference. It covers no new outcome, but detects both changes. Structural coverage therefore remains exactly the same while the suite becomes better at detecting changes to the covered behavior. This is the distinction Veritas measures: not merely whether an outcome is executed or influences an asserted value, but whether changing its behavior is actually noticed by the test suite.
Our key insight is to replace inferred checking with demonstrated detection. For each covered outcome, we deliberately force the decision the other way and ask whether a test that exercised the outcome now fails. The mutant is therefore not a unit to count, but a controlled experiment on one covered behavior. We count an outcome as checked only when the forced change alters execution at its decision, a previously passing test fails, and the failure can be attributed to that outcome. This provides direct evidence that the test suite can detect a change to the covered behavior, without reconstructing a dynamic dependence slice.
We instantiate this idea over object branch coverage (OBC), a structural criterion over compiled code that prior work found comparable to source-level MC/DC in bug-finding efficacy [6]. We present Veritas, which measures object branch checked coverage without dynamic slicing. For each covered object-branch outcome, Veritas forces the opposite outcome and reruns only the tests that reached that decision. It then separates behavior that is uncovered, behavior that is covered but lacks detection evidence, and behavior for which a test demonstrably detects the change. For each result, Veritas records the mutant and tests that provide the evidence, turning the coverage gap into concrete information a developer can inspect. Figure 2 shows a high-level overview of our approach, with details provided in Sections 2 and 3.
We evaluate Veritas on eleven open-source Java projects with 51,382 object-branch outcomes through four complementary studies. We first measure the gap between covered and checked behavior and examine cases that Veritas exposes; second, we compare Veritas with conventional mutation testing on the same mutants; third, we compare it with slicing-based checked coverage on the same branch outcomes and tests; and finally, we test whether the measured gap is associated with independent fault detection by systematically weakening assertions and by comparing faults near checked outcomes with faults near outcomes whose change no test detects.
Four results stand out. First, 18% of covered branch outcomes can be changed without causing any test to fail, exposing weaknesses that coverage alone hides. In a sample of 22 of them, half need a new input rather than a stronger assertion, and about a third leave the program’s results unchanged. Second, when conventional mutation testing reports a surviving mutant, Veritas separates two different problems: 53% are never activated by the existing inputs, while 47% are activated but the existing tests still do not detect them. Third, compared with slicing-based checked coverage, Veritas finds 4,763 branch outcomes whose changes are detected by the tests but not credited by slicing, while 19% of the outcomes slicing considers checked are not detected when changed. Veritas also runs on all eleven projects, whereas Slicer4J [2] fails to produce a result on three of the eleven projects we attempted. Finally, the measured gap is associated with fault-detection effectiveness: weakening assertions increases the gap and reduces detection of independent faults on every project, and code locations controlled by such undetected outcomes are 12.4–54.7 percentage points more likely to have an undetected independent fault than locations controlled by checked outcomes.
The primary contributions of this paper are:
- We formulate, to the best of our knowledge, the first detection-based checked coverage at object-branch granularity, replacing inferred dynamic dependence with direct evidence that a change to a covered outcome is exercised, detected, and attributable to that outcome.
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
• We develop Veritas, an end-to-end methodology and implementation for Java bytecode that measures object branch coverage, checked coverage, and their gap without requiring slicing.
• We make the resulting coverage gap actionable by distinguishing outcomes that require new test inputs from those that are already exercised but require stronger checks, and by identifying the tests and mutations responsible for each result.
• We conduct a large-scale empirical study, comparing Veritas with structural coverage, conventional mutation testing, and slicing-based checked coverage, and independently evaluating its relationship with fault detection.

Fig. 2. Overview of Veritas on the running example. Here, and denote the true and false outcomes of decision . Forcing a covered outcome the other way either makes a test fail (checked set Q) or not (gap G).
2.1 Step 2: Object-Branch Outcomes
Let be the set of binary conditional jumps in Java bytecode considered by Veritas, which we call object-level decisions. Each decision has two outcomes: taken and fall-through. An outcome is one of the two control-flow edges leaving the jump, also called a branch edge or branch direction; we use outcome throughout. The object-branch domain is
Taken and fall-through are preferable to source-level true and false because the compiler may reverse the correspondence. In adjacent, for example, the jump for is taken when its source condition is true, whereas the jumps for and are taken when their conditions are false. We therefore record bytecode outcomes directly, although we use T and F in examples for readability.
We exclude switch arms, exception edges, and compiler-generated jumps such as those introduced for assert (Section 3). Infeasible outcomes are not removed; they remain in and count against coverage.
2.2 Step 3: Baseline Execution and Coverage
We run the test suite twice on the original program. In each run, Veritas records a trace for every test and decision: the outcomes that the test takes at that decision, in the order they occur. Only tests that pass both times with identical traces are kept [31]. This avoids treating ordinary nondeterminism as evidence of a mutation effect. The kept tests make up the set , and their traces are the baseline.
An outcome is covered when at least one test in takes it in the baseline. These outcomes form the covered set , and each is counted once, no matter how often it runs or how many tests take it. The remaining outcomes form the uncovered set .
2.3 Step 4: Outcome-Forcing Experiments
For each decision, Veritas constructs mutants that force one outcome on every execution. A mutant that forces outcome tests the opposite outcome observed in the original execution. A mutant of decision is run only against tests that reached in the baseline. We also rerun those same tests on the original program. This clean run is the proper comparison point because executing only part of a suite can itself change program behavior, for example through class initialization.
Veritas records each test's clean and mutant traces at . If the clean trace no longer agrees with the baseline, the mutant–test pair is not measured.
2.4 Step 5: Checking Evidence and Metrics
A covered outcome is checked only when the experiment establishes that it was reached, activated, detected, and attributed.
Activation. A mutant–test pair is activated when the mutant changes the path the test takes at the target decision, that is, when the test's clean and mutant traces differ. Reaching the decision is not enough: if the test already takes the forced outcome every time, the mutant changes nothing.
Detection. A test detects the mutant when it passes in the clean run and fails in the mutant run. A failure may be an assertion failure or an unexpected exception, which we record as a crash. Timeouts and out-of-memory failures do not count as detections.
Attribution. A detection is credited to the outcome that the mutant changed first. To find it, Veritas compares the clean and mutant traces entry by entry and takes the outcome from the clean trace at the first entry where they differ. A failing test usually stops early, so its mutant trace is often shorter. Attribution still works if the traces differ before the shorter one ends. If they differ only in length, no entry shows a changed outcome, so the detection is ambiguous and no outcome is credited. Table 1 summarizes the possible results of an experiment.
Table 1. Evidence from one mutant–test experiment.
| Classification | Evidence | Contribution to |
|---|---|---|
| Not reached | The test does not execute the target decision. | None |
| Reached, not activated | The target executes, but the traces are identical. | None |
| Activated, detected | The traces differ, the test fails, and attribution succeeds. | Attributed outcome |
| Ambiguous | The test fails after activation, but attribution is undefined. | None |
| Activated but undetected | The traces differ, but the test passes in a complete, valid run. | None |
| Not measured | Execution evidence is missing or invalid. | None |
An outcome enters the checked set when at least one detection is credited to it. The other covered outcomes form the gap , so every outcome in belongs to exactly one of , or
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
Q. An outcome in takes the strongest result among its experiments in Table 1: it is activated but undetected if any of its experiments is, otherwise ambiguous if any is, and otherwise unassessable, since at least one of its experiments was not measured. We call ambiguous and unassessable outcomes unresolved.
Following Hossain et al. [15], we report four metrics. All four divide by , so they can be compared and added directly.
Object branch coverage (OBC) is the share of outcomes that at least one retained test executes, and the object branch coverage gap (OBCG) is the share of outcomes that no retained test executes. Closing this gap needs new test inputs where the outcome is feasible. Object branch checked coverage (OBCC) is the share of outcomes for which a test detects a forced change and the detection is attributed to that outcome, and the object branch checked coverage gap (OBCCG) is the share of outcomes that retained tests execute but for which Veritas found no checking evidence:
Hence OBCG + OBCC + OBCCG = 1. OBCCG is the coverage gap of Hossain et al., with detection in place of slicing. An outcome in lacks evidence; it is not necessarily unchecked.
For a method, class, or project, Veritas adds up the counts in that scope before dividing, so every outcome has equal weight. The metrics are undefined for a scope with no outcomes.
2.5 Running Example
Consider again adjacent from Figure 1. Its three decisions are
Ignoring the decisions inside overlaps, these give six outcomes.
Table 2. The running example on the original test. A dash denotes a skipped decision.
(a) Decision outcomes
| Call | Intervals | Return | |||
|---|---|---|---|---|---|
| First | [0, 10), [10, 20) | T | - | T | true |
| Second | [0, 10), [5, 20) | F | F | - | false |
| Covered (C) | T, F | F | T | ||
(c) Sets and metrics
| Sets | ||
|---|---|---|
| Metrics | OBC = 66.7%OBCC = 33.3% | OBCG = 33.3%OBCCG = 33.3% |
(b) Mutation evidence
| Forced outcome | Clean → mutant | Classification | Added to Q |
|---|---|---|---|
| : F | TF → F | Activated, detected | |
| : F | T → F | Activated, detected | |
| : T | TF → TT | Activated but undetected | None |
| : T | F → T | Activated but undetected | None |
| : F | F → F | Reached, not activated | None |
| : T | T → T | Reached, not activated | None |
Coverage. The first call uses touching intervals, the second overlapping ones. Due to short-circuit evaluation, each skips one decision (Table 2(a)), so four outcomes are covered. The remaining two belong to . Outcome could be covered by intervals that touch in the opposite order. Outcome is infeasible here: whenever is evaluated, two touching intervals cannot overlap.
Checking evidence. Table 2(b) shows the six forcing experiments. Forcing to false changes the first call from true to false, so assertTrue fails. The test stops there, so the traces and differ in length, but their first entries differ, so enters .
Forcing to true is more interesting. Forcing or to true on the overlapping input changes the path, but !overlaps(o) is then false, so the method still returns false. The assertion passes. These mutants are activated but undetected, so and remain in G. Table 2(c) gives the resulting sets and metrics.
Adding a test. The added test separatedIntervals uses intervals that neither touch nor overlap. It covers no new outcome, so OBC is unchanged. It does detect the changes to and . The two outcomes therefore move from G to Q, raising OBCC to 66.7% and reducing OBCCG to zero. The new test improves detection without increasing structural coverage. The improvement comes from a new input, not a stronger assertion. The same input also catches a real fault: if end == o.start is written as end <= o.start, adjacency still passes, but separatedIntervals fails.
3 Implementation
Veritas is implemented in Java and operates on compiled class files and the project’s own JUnit 5 tests [37] through Maven. It uses ASM 9.7 [5] to analyze and rewrite bytecode and PIT 1.17 [8] to generate outcome-forcing mutants.
3.1 Bytecode Analysis and Tracing
A static scanner identifies every binary conditional jump, such as if_icmpeq or ifnull. We identify each decision by its class, method name, method descriptor, and ordinal among the conditional jumps in that method. The same identifier is used throughout tracing, mutation, and analysis. Following JaCoCo [10], we exclude compiler-generated jumps, including those in synthetic methods, enum-generated methods, string switch code, and assert. Excluded jumps still contribute to the ordinal, and Veritas reports how many each filter removes.
Tracing is performed by a Java agent loaded through -javaagent. As program classes are loaded, the agent inserts a recording call on both outcomes of each decision; test classes are left untouched. It maintains a separate trace per thread, while a JUnit Platform listener [37] records test boundaries, verdicts, and failure types.
We checked that the instrumentation preserves test behavior: all 738 tests of commons-cli and all 1,297 tests of jsoup give identical results with and without the agent. On commons-cli, Veritas records 763 covered outcomes, compared with 772 branches reported by JaCoCo [10]. The difference comes from nine switch arms, which are outside our decision domain, and one outcome executed only during class loading, offset by one branch that JaCoCo misses.
3.2 Mutation and Test Execution
Veritas invokes PIT’s mutation engine through its API using the four REMOVE_CONDITIONALS operators ending in _EQUAL_IF, _EQUAL_ELSE, _ORDER_IF, and _ORDER_ELSE [8]. For each conditional jump, one mutant forces fall-through and the other forces the jump, yielding exactly one mutant for each outcome in B. To associate a PIT mutant with a Veritas decision, we compare the mutated method with the original; the first differing instruction identifies the target jump. Mutants corresponding to filtered decisions are rejected and reported.
Tests selected for a mutant are executed through Maven Surefire’s test filter. The agent substitutes the mutated class when it is loaded. We record only the target decision during the corresponding clean and mutant runs, because removing a jump renumbers later jumps in the method. Each run uses its own JVM and working directory, allowing independent runs to execute in parallel. Since forcing an outcome can create a nonterminating loop, each run has a default 120-second timeout.
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
3.3 Reporting and Scope
For every mutant, Veritas records the clean and mutant traces, test verdicts, failure types, and the evidence classification of every mutant–test pair. It also produces one row for every outcome in B. For a checked outcome, the report names the mutant and test that provide the checking evidence; for an outcome in G, it records why such evidence could not be established. These records allow individual classifications to be inspected and reproduced.
The current implementation expects javac-generated class files in one directory and JUnit Platform tests executed through Maven Surefire.
4 Evaluation
We evaluate Veritas on eleven open-source Java systems and answer the following research questions:
RQ1: What testing weaknesses does Veritas reveal beyond structural coverage?
RQ2: What does Veritas reveal beyond conventional mutation testing?
RQ3: How does Veritas compare with slicing-based checked coverage?
RQ4: Is the gap identified by Veritas associated with weaker fault detection?
4.1 Subjects and Setup
Table 3 summarizes the eleven subject systems. They are libraries for command-line processing, encoding, CSV parsing, validation, date and time handling, HTML parsing, XPath, JSON, SVG, string conversion, and charting, and contain between 329 and 11,195 decisions. Six of these systems were also studied by Hossain et al. [15]. Most of the remaining systems in their study use JUnit 3 or 4 with Java 1.5 source compatibility, have multi-module builds, or require build modifications. We therefore added five libraries that use JUnit 5.
We analyze one release of each project using its unmodified developer test suite. All experiments ran on a laboratory server with 24 cores, 60 GB of memory, and OpenJDK 21.
Table 3. Subject systems, ordered by the number of object-branch outcomes. Tests is the number of retained tests in (Section 2.2), and is the total number of outcomes.
| Project | Version | Tests | |B| |
|---|---|---|---|
| jfreesvg [20] | 5.0.7 | 122 | 658 |
| commons-csv [34] | 1.11.0 | 832 | 702 |
| joda-convert [21] | 3.0.1 | 190 | 778 |
| commons-cli [32] | 1.9.0 | 738 | 796 |
| commons-validator [36] | 1.11.0 | 1,144 | 1,920 |
| commons-codec [33] | 1.17.1 | 1,675 | 2,164 |
| threeten-extra [38] | 1.10.0 | 13,105 | 2,780 |
| jsoup [14] | 1.18.1 | 1,297 | 4,368 |
| commons-jxpath [35] | 1.4.0 | 411 | 5,338 |
| jackson-core [11] | 2.17.2 | 1,359 | 9,488 |
| jfreechart [19] | 1.5.6 | 2,348 | 22,390 |
| All | 23,221 | 51,382 |
4.2 RQ1: Testing Weaknesses Beyond Coverage
Coverage shows that an outcome ran, not that the tests would notice a change to it. RQ1 asks how often covered outcomes have checking evidence, where the gaps are, and how tests detect the changes they see.
4.2.1 Experimental Setup. For each of the 51,382 outcomes in B, Veritas generated an outcome-forcing mutant and ran it against the tests that reached the decision. Each covered outcome falls in one of three groups, following the evidence of Section 2.4. It is checked when forcing the opposite outcome makes a test fail, and the failure is attributed to it. It is activated but undetected when the change alters the trace of a reaching test, but all affected tests pass. It is unresolved when the evidence is ambiguous or no valid mutant run exists.
The checked outcomes form , and the other two groups make up the gap . We report results by project, class, and method, and record whether each detecting test fails an assertion or crashes, meaning it throws an unexpected exception.
(a) Evidence for covered outcomes (% of )

(b) commons-cli: Option.toString

Fig. 3. Coverage does not imply detection. (a) How each project's covered outcomes split into checked, activated-but-undetected, and unresolved outcomes, ordered by the activated-but-undetected share; All pools the eleven projects, and the commons- prefix is omitted. (b) All eight outcomes of Option.toString are covered, but seven are activated but undetected, because the tests check only the boxed properties.
We also examined 66 sampled outcomes, two per group in each project. An LLM (Claude Opus 5.5) read the execution record, source code, and tests under a fixed prompt [3], without running the tests. One author checked every explanation against the code and made final classification.
Table 4. RQ1 results per project, ordered by the share of covered outcomes that are activated but undetected. OBCC, OBCCG, and OBCG split ; Checked, Activated but undetected, and Unresolved split , with shares in parentheses. Rounding can make a row sum to 99.9 or 100.1. Crash is the share of detecting mutant–test pairs that failed with an unexpected exception rather than an assertion. The commons- prefix is omitted.
| Project | Number of outcomes | OBC (%) |C|/|B| | Share of |B| (%) sums to 100 | Covered outcomes: number and share of |C| (%), sums to 100 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| All |B| | Covered |C| | OBCC |Q|/|B| | OBCCG |G|/|B| | OBCG |U|/|B| | Checked |Q| (%) | Activated but undetected n (%) | Unresolved n (%) | Crash (%) | ||
| jfreechart | 22,390 | 10,488 | 46.8 | 34.6 | 12.2 | 53.2 | 7,758 (74.0) | 2,621 (25.0) | 109 (1.0) | 31.7 |
| jackson-core | 9,488 | 6,741 | 71.0 | 55.9 | 15.2 | 29.0 | 5,303 (78.7) | 1,354 (20.1) | 84 (1.2) | 65.7 |
| jfreesvg | 658 | 366 | 55.6 | 44.2 | 11.4 | 44.4 | 291 (79.5) | 68 (18.6) | 7 (1.9) | 30.7 |
| jsoup | 4,368 | 3,769 | 86.3 | 70.4 | 15.8 | 13.7 | 3,077 (81.6) | 579 (15.4) | 113 (3.0) | 60.1 |
| threeten-extra | 2,780 | 2,493 | 89.7 | 74.4 | 15.3 | 10.3 | 2,067 (82.9) | 362 (14.5) | 64 (2.6) | 30.3 |
| jxpath | 5,338 | 3,616 | 67.7 | 56.3 | 11.5 | 32.3 | 3,004 (83.1) | 467 (12.9) | 145 (4.0) | 76.0 |
| codec | 2,164 | 1,947 | 90.0 | 76.1 | 13.9 | 10.0 | 1,647 (84.6) | 238 (12.2) | 62 (3.2) | 47.2 |
| validator | 1,920 | 1,516 | 79.0 | 69.1 | 9.8 | 21.0 | 1,327 (87.5) | 169 (11.1) | 20 (1.3) | 24.8 |
| cli | 796 | 763 | 95.9 | 87.3 | 8.5 | 4.1 | 695 (91.1) | 63 (8.3) | 5 (0.7) | 58.4 |
| joda-convert | 778 | 559 | 71.9 | 62.7 | 9.1 | 28.1 | 488 (87.3) | 41 (7.3) | 30 (5.4) | 72.5 |
| csv | 702 | 686 | 97.7 | 88.7 | 9.0 | 2.3 | 623 (90.8) | 37 (5.4) | 26 (3.8) | 33.4 |
| All (pooled) | 51,382 | 32,944 | 64.1 | 51.1 | 13.0 | 35.9 | 26,280 (79.8) | 5,999 (18.2) | 665 (2.0) | 52.6 |
4.2.2 Results. Table 4 gives the exact results, and Figure 3(a) shows how each project's covered outcomes split into the three groups. The tests cover 32,944 of the 51,382 outcomes (OBC 64.1%), and Veritas finds checking evidence for 26,280 of the 51,382 (OBCC 51.1%). The difference, OBCCG, is 13.0 percentage points. The gap holds 6,664 of the 32,944 covered outcomes (20.2%): 5,999 (18.2%) are activated but undetected and 665 (2.0%) are unresolved. Activated-but-undetected outcomes therefore make up 90.0% of the gap, and every project has some.
Across projects, OBC ranges from 46.8% (jfreechart) to 97.7% (commons-csv), OBCC from 34.6% to 88.7%, and OBCCG from 8.5 to 15.8 points. The activated-but-undetected share of covered outcomes
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
ranges from 5.4% to 25.0%. The gap is not limited to projects with low coverage: commons-csv and commons-cli, which have the highest OBC, still have 37 of 686 and 63 of 763 covered outcomes activated but undetected. Each comes with its mutant and reaching tests, so a developer can reproduce the change.
The 5,999 outcomes lie in 2,493 of the 5,827 methods that contain a covered outcome. In seven projects, five or fewer classes hold half of them; in jfreechart, 24 of 388 classes do.
Coverage also hides gaps in methods that look complete. Of the 2,609 methods whose outcomes are all covered, 867 (33.2%) have at least one activated-but-undetected outcome. In Figure 3(b), the tests cover all eight outcomes of Option. toString, but seven are activated but undetected: the tests check only that the result is non-null and starts with a fixed prefix.
Overall, 52.6% of detecting mutant–test pairs fail by an unexpected exception, not an assertion failure, from 24.8% (commons-validator) to 76.0% (commons-jxpath). A crash shows that the test detects the forced change, not that an assertion checks the affected result, so we read OBCC as evidence of detection, not as a measure of assertion or oracle quality.
Of the 665 unresolved outcomes, 33 are ambiguous and 632 are unassessable, most often because a forced outcome makes the run exceed the time limit.
4.2.3 Qualitative Analysis. The aggregate results show the size and place of the gap, not what individual cases mean. We therefore examined the 66 sampled outcomes. Because the sample has equal numbers from each project and group, its counts describe the sample, not the whole population.
The 22 sampled activated-but-undetected outcomes have four explanations. In 11, forcing the opposite outcome gives the same result for the inputs the tests use, so detection would need a different input. For example, commons-validator tests the precision limit of maxValue at but not the matching case for minValue. In two, the difference is visible but unchecked: a clone that shares its items with the original object, and an error message the test ignores. In eight, the forced outcome changes program state but not the relevant result, for example an identity shortcut in equals and a logging guard. The last is a measurement effect: Veritas records a static initializer only for the first test that loads its class.
So an activated-but-undetected outcome does not always mean a weak assertion. It may point to a missing input, behavior-preserving code, or a limit of the measurement.
Of the 22 sampled unresolved outcomes, 15 arise because the mutant run does not finish, usually because a forced outcome keeps a loop from ending. In the other seven, a test fails but Veritas cannot attribute the failure safely: the test fails before recording starts, its clean run differs from the baseline, or the failure seems to come from Veritas's instrumentation.
Of the 22 sampled checked outcomes, 17 are detected by an assertion failure and five by an unexpected exception.
Finding 1: Veritas finds checking evidence for 79.8% of covered outcomes. For 18.2%, forcing the opposite outcome changes execution but no affected test fails, and 2.0% remain unresolved. Activated-but-undetected outcomes make up 90.0% of the gap, occur in every project, and appear in 33.2% of fully covered methods. The sampled cases point to missing inputs, weak checks, behavior-preserving code, and a measurement effect. Also, 52.6% of detecting pairs fail by crash, not assertion failure.
4.3 RQ2: Comparison with Conventional Mutation Testing
Veritas builds on PIT’s [8] mutants, but reports different evidence. PIT classifies a mutant as killed or survived. A survivor, however, may never have affected execution, or it may have changed
Table 5. What Veritas adds to a mutation-testing report on the same mutants. Survived and Killed are counts of the mutants PIT would report so. Not activated and Activated, undetected are percentages of Survived, and the rest of Survived is unresolved or, for 13 mutants, changes a trace although the outcome it assesses is never covered. Crash only is a percentage of Killed. Killers credited is the percentage of PIT's listed killing tests that Veritas credits. Line coverage is the percentage of Survived, without its unresolved mutants, for which a line-level branch report, read with PIT's status for the decision's other mutant, tells whether the change ran.
| Project | PIT survived | PIT killed | Line coverage (%) | ||||
|---|---|---|---|---|---|---|---|
| Number | Not activated (%) | Activated, undetected (%) | Number | Crash only (%) | Killers credited (%) | ||
| jfreesvg | 202 | 66.3 | 33.7 | 293 | 23.2 | 99.9 | 58.9 |
| commons-csv | 53 | 30.2 | 69.8 | 626 | 16.6 | 57.2 | 84.9 |
| joda-convert | 124 | 63.7 | 33.1 | 514 | 45.7 | 88.5 | 66.7 |
| commons-cli | 96 | 34.4 | 65.6 | 695 | 30.6 | 99.8 | 67.7 |
| commons-validator | 382 | 56.0 | 44.0 | 1,335 | 15.3 | 98.3 | 50.3 |
| commons-codec | 345 | 31.0 | 69.0 | 1,655 | 22.4 | 94.7 | 71.6 |
| threeten-extra | 550 | 34.4 | 65.6 | 2,084 | 19.6 | 95.4 | 73.5 |
| jsoup | 974 | 40.5 | 59.0 | 3,080 | 21.2 | 91.1 | 68.9 |
| commons-jxpath | 1,265 | 62.1 | 36.9 | 3,007 | 44.4 | 95.5 | 61.2 |
| jackson-core | 2,800 | 51.9 | 47.8 | 5,339 | 32.7 | 95.6 | 58.5 |
| jfreechart | 6,031 | 56.5 | 43.5 | 7,758 | 20.7 | 99.3 | 51.9 |
| All (pooled) | 12,822 | 53.2 | 46.6 | 26,386 | 26.3 | 93.1 | 57.4 |
execution without being detected. Likewise, a killed mutant may be detected by an assertion or only by an unexpected exception. RQ2 asks what Veritas adds by separating these cases.
4.3.1 Experimental Setup. Veritas uses PIT's four remove-conditional operators, giving one mutant per branch outcome. Using the executions from RQ1, we refine PIT's verdicts. A surviving mutant is not activated, activated but undetected, or unresolved. A killed mutant is detected by an assertion, only by a crash, or lacks valid detection evidence. We also examine whether JaCoCo's line-level branch coverage, alone or combined with PIT's verdict for the other mutant of the same decision, can distinguish activation from non-activation. Table 5 covers the 39,208 mutants that PIT kills or lets survive; of the other 12,174, 11,596 are never reached by any test, 494 time out or run out of memory, and 84 have no PIT status.
4.3.2 Results. Table 5 splits the 12,822 mutants that PIT would report as survived. For 6,816 (53.2%), no test activated the change. These cases require a different input, unless the outcome is infeasible; adding an assertion to the existing executions cannot help. For 5,977 (46.6%), the change was activated but every affected test still passed. These cases may require a stronger check, a different input, or may represent a change that does not affect the relevant result. Of the remaining 29, 16 are unresolved and 13 change a trace although the outcome they assess is never covered.
Thus, PIT's single "survived" label combines two substantially different testing problems: failure to activate the change and failure to detect an activated change. The not-activated share ranges from 30.2% on commons-csv to 66.3% on jfreesvg.
Coverage does not recover this distinction reliably. A line-level report alone determines whether the change ran for 27.3% of the 12,806 surviving mutants that are not unresolved. Combined with PIT's result for the other mutant of the same decision, it determines this for 57.4%. For the remaining 42.5%, PIT and line coverage still cannot tell whether the surviving change was activated.
For activated but undetected mutants, Veritas also identifies the tests that actually ran the change and passed, narrowing inspection to a median of 1–8 tests per mutant, depending on the project.
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
Of the 26,386 mutants PIT would report as killed, 6,944 (26.3%) were detected only by a crash, with no assertion failure. The share ranges from 15.3% on commons-validator to 45.7% on joda-convert (Table 5). Thus, more than one quarter of PIT's kills provide crash-based rather than assertion-based detection evidence.
PIT's full kill matrix lists 661,871 killing tests. Veritas credits 616,505 (93.1%) of them. Of the 45,366 uncredited entries, 34,920 never reach the changed code, often because the mutant causes an ExceptionInInitializerError. This rarely changes the mutant-level verdict: only 106 killed mutants have no credited test. It does, however, change which tests provide valid evidence for the kill. Veritas also withholds credit from 494 mutants that PIT counts as killed only because execution times out or runs out of memory.
Finding 2: PIT reports whether a mutant survived or was killed; Veritas explains why. Of PIT's surviving mutants, 53.2% were never activated and 46.6% were activated but undetected. PIT combined with line coverage still cannot distinguish these cases for 42.5% of survivors. Among killed mutants, 26.3% were detected only through crashes. Veritas therefore separates missing inputs from missing detection and identifies the tests that provide the relevant evidence.
4.4 RQ3: Comparison with Slicing-Based Checked Coverage
Both approaches ask which covered outcomes are checked, but use different evidence. Slicing-based checked coverage credits an outcome when an asserted value depends on it [15, 28]. Veritas credits an outcome only when forcing the opposite outcome changes execution and causes a previously passing test to fail. We compare the two on the same outcomes and tests.
4.4.1 Experimental Setup. We use Slicer4J [2] because JavaSlicer [12], used by Hossain et al., does not support recent Java features. An outcome belongs to when the dynamic slice of an assertion contains an execution of that outcome.
We compare only executions correctly processed by both tools, requiring tests to finish under both and record the same number of executions for each decision. Slicer4J produced usable output for eight of eleven systems; six had at least 100 common tests and 100 common covered outcomes and form the main comparison. We set this minimum before computing agreement to ensure sufficient evidence, excluding commons-jxpath and jackson-core, with 26 and 48 common tests, respectively.
To explain disagreements, we classify crash-only detections, skipped actions, and decisions executed inside assertion calls such as equals, hashCode, and compareTo. An author manually inspected a random sample of 112 cases of the remaining and scale those categories within their groups.
4.4.2 Results. Table 6 compares 8,419 outcomes that both methods could assess. Both credit 2,049 outcomes, Veritas alone credits 4,763, the slice alone credits 482, and neither credits 1,125. Thus, the disagreement is strongly asymmetric: Veritas finds far more outcomes with observed detection that are absent from assertion slices.. Without the 734 crash-only detections, Veritas alone still credits 4,029 outcomes, more than eight times the 482 that only the slice credits.
We measure positive agreement as , where is the number of outcomes credited by both, and and the numbers credited only by Veritas or only by the slice. Agreement is 0.65–0.77 on five systems and 0.33 on jfreechart. When both methods credit an outcome, they usually agree on the supporting assertion: 80–95% of pairs on five systems and 66% on jsoup. Thus, the methods largely agree when dependence and detection coincide.
Figure 4(a) illustrates both agreement and disagreement. In CommandLine.addArg, both methods credit the fall-through outcome: forcing it away removes an argument and fails the final size assertion. For the taken outcome, forcing the add lets a null argument enter the list and the test fails,
(a) cli: CommandLine.addArg
if (arg != null) // taken: skip add args.add(arg); // fall-through // test parses {null,-c",null, // "foobar",null,-b",null, // "toast",null} assertEquals(3, cl.getArgList().size());
(b) jsoup: Tag.equals
if (this == o) // taken return true; // test (JUnit calls equals // inside the assertion): assertEquals( Tag.valueOf("P"), Tag.valueOf("p"));
(c) codec: URLCodec.encode
if (str == null) // fall-through return null; // the next call checks null again return encode(str, getDefaultCharset()); // test: assertNull(urlCodec.encode( (String) null));
(d) Kinds of Veritas-only outcomes per project (% of each project's Veritas-only outcomes)

Fig. 4. Examples and kinds of disagreement. (a) Both methods credit the fall-through outcome, and only Veritas credits the taken outcome. (b) Only Veritas credits the taken outcome. (c) Only the slice credits the fall-through outcome, although no test notices the change. (d) Kinds of Veritas-only outcomes per project, with their number in brackets. Project names omit the commons- prefix.
so Veritas credits it. The slice does not, because the skipped add leaves no value for the assertion to depend on.
Table 6. Agreement between Veritas and slicing-based checked coverage on outcomes both methods could assess. Parentheses give the Veritas-only outcomes detected only through a crash.
| Project | Compared | Credited as checked | Positive agreement | |||
|---|---|---|---|---|---|---|
| Both | Veritas only (crash only) | Slice only | Neither | |||
| commons-csv | 135 | 62 | 66 (16) | 2 | 5 | 0.65 |
| commons-cli | 290 | 144 | 109 (38) | 23 | 14 | 0.69 |
| commons-validator | 301 | 186 | 95 (27) | 14 | 6 | 0.77 |
| commons-codec | 429 | 199 | 166 (51) | 11 | 53 | 0.69 |
| jsoup | 869 | 378 | 372 (125) | 32 | 87 | 0.65 |
| jfreechart | 6,395 | 1,080 | 3,955 (477) | 400 | 960 | 0.33 |
| Total | 8,419 | 2,049 | 4,763 (734) | 482 | 1,125 | - |
Table 7 summarizes the broader differences in checking evidence, diagnostic information, and applicability. Figure 4(d) shows that the causes of Veritas-only outcomes vary by system. Crashes, skipped actions, and Slicer4J limitations account for much of the difference on the five smaller systems; on jfreechart, decisions executed inside assertion calls dominate (75.3%).
Three cases explain most Veritas-only outcomes. First, 734 outcomes are detected only through an unexpected exception, a common form of detection in every system (Section 4.2). Second, an outcome may skip an action, leaving no executed value for a slice to follow. Third, a decision may execute inside the assertion call itself. Figure 4(b) shows the third: JUnit invokes Tag.equals while evaluating assertEquals. Forcing this == o makes the assertion fail, but the decision executes after the slicing criterion. Additional disagreements arise from Slicer4J limitations, which are implementation limitations rather than inherent limitations of dynamic slicing.
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
Table 7. Differences between Veritas and Slicer4J. Counts are outcomes over the six compared subjects; ≈ denotes counts extrapolated from the inspected cases.
| Situation | Veritas | Slicer4J |
|---|---|---|
| Part 1. Outcomes counted as checked | ||
| When is an outcome checked? | ✓ A test fails after the outcome is forced to change | ✕ The value checked by an assertion depends on the outcome, even if no test would fail |
| A test catches the change by crashing | ✓ Counted (734 outcomes) | ✕ Missed because the slice starts at an assertion |
| The outcome skips an action | ✓ Counted (≈262) | ✕ Missed because a skipped action leaves no value to follow |
| The decision is inside the assertion call, such as equals in assertEquals | ✓ Counted (≈3,064) | ✕ Missed because the decision runs after the slice starts |
| The check is outside assertion calls, such as Mockito’s verify | ✓ Counted (≈76) | ✕ Missed |
| Values pass through JDK classes | ✓ Not affected | ✕ Lost in Slicer4J’s JDK summaries (≈556) |
| No test notices the change | ✓ Never counted | ✕ Counted: 482 outcomes, 19% of its checked set |
| Part 2. Information for developers | ||
| Evidence reported for an outcome | ✓ Reached, activated, detected, and attributed | ✕ In a slice or not |
| Reason when there is no evidence | ✓ Not activated, undetected, ambiguous, or unassessable | ✕ Only “not in a slice” |
| How a test failed | ✓ Assertion or crash, and which assertion | ✕ Not observed |
| Tests that ran the change and passed | ✓ Named (median 1 to 8 per mutant, Section 4.3) | ✕ Not available |
| Unit of the result | ✓ Bytecode branch outcome | ✕ Statement; the outcome must be derived |
| Part 3. Applicability and cost | ||
| Subjects with a result | ✓ All 11 | ✕ 8 of the 11 tried |
| Java 21 class files | ✓ Read | ✕ Not read; Soot reads class files only up to Java 9 |
| Share of tests that run to the end | ✓ 100% (all tests in T) | ✕ 4% to 99% |
| Share of decisions counted the same as Veritas | ✓ 100% | ✕ 1% to 39% |
| Peak memory on the same tests | ✓ 1.1 to 6.4 GB | ✕ Up to 9.8 GB |
The 482 slice-only outcomes show the opposite problem: dependence does not imply detection. In every case, the forced change executes but all tests still pass. In about 302 cases, the asserted value depends on the outcome but remains the same after the change. Figure 4(c) shows an example: URLCodec.encode checks for null, but the next method repeats the same check, so skipping the first check changes the path but not the result. In about 180 other cases, Slicer4J credits an outcome that affects an unobserved part of an object, such as an exception message.
This difference also appears at the test level. Slicer4J reports 24,099 test-outcome checking pairs, but in 8,812 (36.6%) the named test executes the forced change and still passes. A dependence path therefore does not guarantee that the named test would detect a change. Veritas credits an outcome only through a test that actually fails.
Veritas distinguishes outcomes that are not activated, activated but undetected, ambiguous, or unassessable, and records the tests and failure mode behind each detection. Slicer4J reports whether an outcome belongs to an assertion slice. Veritas ran on all eleven systems, Slicer4J on only eight, and on the common tests Veritas used at most 6.4 GB of memory, Slicer4J over 9 GB on five. These Slicer4J limits make slicing-based checked coverage hard to apply to modern Java.
Finding 3: Veritas and slicing agree when dependence and detection coincide, but differ otherwise. Of 8,419 comparable outcomes, Veritas alone credits 4,763 and slicing alone 482. Veritas captures detections missed by assertion slices, while slice-only outcomes show dependence without detection. Moreover, 36.6% of Slicer4J’s test-outcome checking pairs name tests that still pass when the outcome changes. Veritas ran on all eleven systems; Slicer4J produced no result on three, and consumed more memory.
Table 8. RQ4 results. Experiment 1 reports OBCCG and held-out fault detection for the full suite and the suite with all assertions disabled; the slope is from the fitted detection–OBCCG line. Experiment 2 reports the number of gap-controlled and checked-controlled fault sites, with the percentage of affected sites in parentheses. The final column gives the difference between the two percentages and its conservative 95% interval. The commons- prefix is omitted.
| Project | Experiment 1: weaker oracles | Experiment 2: faults near gap outcomes | ||||
|---|---|---|---|---|---|---|
| OBCCG (pp) | Faults detected (%) | Slope | Gap-controlled | Checked-controlled | Difference (pp) | |
| jfreesvg | 11.4→44.7 | 44.0→10.0 | -0.94 | 25 (36.0) | 182 (13.2) | +22.8 [+1.4, +46.5] |
| csv | 9.0→60.8 | 93.8→59.6 | -0.62 | 8 (50.0) | 115 (13.0) | +37.0 [+1.1, +70.4] |
| joda-convert | 9.1→32.5 | 69.3→33.7 | -1.57 | 16 (43.8) | 287 (15.3) | +28.4 [+3.1, +55.2] |
| cli | 8.5→41.1 | 90.6→48.6 | -1.21 | 11 (63.6) | 146 (8.9) | +54.7 [+20.7, +79.6] |
| validator | 9.8→57.8 | 73.8→21.6 | -1.09 | 51 (51.0) | 311 (29.9) | +21.1 [+2.5, +39.1] |
| codec | 13.9→65.9 | 89.4→26.9 | -1.18 | 85 (38.8) | 1,115 (9.2) | +29.6 [+18.1, +41.8] |
| threeten-extra | 15.3→61.3 | 87.0→33.1 | -1.12 | 185 (24.3) | 772 (6.9) | +17.5 [+9.8, +25.7] |
| jsoup | 15.8→44.0 | 54.1→33.3 | -0.74 | 221 (79.2) | 901 (32.3) | +46.9 [+37.9, +54.7] |
| jxpath | 11.5→25.8 | 48.3→32.0 | -1.16 | 130 (53.1) | 1,066 (40.7) | +12.4 [+0.8, +23.6] |
| jackson-core | 15.2→36.2 | 68.6→36.4 | -1.44 | 755 (28.9) | 2,884 (11.1) | +17.8 [+13.5, +22.2] |
| jfreechart | 12.2→30.7 | 27.7→14.4 | -0.74 | 1,848 (88.9) | 3,678 (59.4) | +29.5 [+26.4, +32.4] |
4.5 RQ4: Association with Fault-Detection Weakness
We ask whether the checking-evidence gap is associated with weaker fault detection. We use two experiments on the existing test suites. The first weakens assertions and measures the resulting change in OBCCG and fault detection. The second compares how often fault sites near activated-but-undetected outcomes and near checked outcomes contain a surviving fault. Both experiments use faults independent of Veritas's outcome-forcing mutants. Using the same mutants to assess fault detection would be circular. Therefore, we use held-out faults: PIT mutants from the nine default operators that do not change branch conditions. These operators change arithmetic, increments, negations, return values, and method calls.
4.5.1 Experimental Setup. Experiment 1: weaker oracles. Following Hossain et al. [15], we weaken each system's test suite by switching off a random share of its assertions. A switched-off assertion is still executed with the same arguments, but its result is discarded. The tests therefore execute the same code and the covered set remains unchanged; only the checking changes. We confirmed this by comparing the traces of the full and fully weakened suites, test by test.
We measure OBCCG and the share of held-out faults detected at ten assertion strengths: 0%, 5%, 10%, 15%, 25%, 45%, 55%, 65%, 75%, and 100% of assertions switched on. The same random seed is used at all strengths, and the suites are nested: an assertion switched off at one strength stays off at every weaker strength. The suites contain 215 to 9,526 assertion sites, and the systems contain 369 to 23,700 held-out faults.
Experiment 2: faults near gap outcomes. We keep the full test suite and examine where held-out faults survive. For each PIT fault site, we identify its nearest controlling branch outcome in the control-flow graph. We retain a site only when the suite executes the site and the controlling outcome is unique. A site is gap-controlled when the outcome is activated but undetected, and checked-controlled when the outcome is in Q. Sites controlled by unresolved outcomes are excluded.
We run each fault against the full suite in a fresh JVM. A fault site is affected if at least one fault at that site survives. For each system, we compare the share of affected sites in the gap-controlled and checked-controlled groups. We report 95% Wilson intervals [41] and a conservative interval for the difference. We do not pool systems.
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain

(a) Weaker oracles

(b) Faults near gap outcomes
Fig. 5. (a) Held-out fault detection as OBCCG increases when assertions are switched off. Each dot is one weakened suite; lines are least-squares fits and labels give their slopes. (b) Percentage of affected fault sites for gap-controlled and checked-controlled sites. Error bars are 95% Wilson intervals; brackets give the corresponding site counts.
4.5.2 Results. Experiment 1: weaker oracles. Table 8 and Figure 5(a) show the results. On all eleven systems, switching off assertions increases OBCCG and lowers held-out fault detection. On commons-cli, for example, OBCCG increases from 8.5 to 41.1 percentage points, while fault detection falls from 90.6% to 48.6%. The same ordering holds on every system, with Kendall's .
A one-point increase in OBCCG corresponds to a 0.62–1.57 percentage-point decrease in fault detection. The slopes range from -0.62 on commons-csv to -1.57 on joda-convert, with from 0.968 to 0.998. Including PIT faults that change conditions gives the same ordering, with slopes from -0.82 to -1.32. Hossain et al. report a similar association for their slicing-based gap, with between -0.88 and -1.00. Fault detection remains nonzero with all assertions disabled. The fully weakened suites detect 10.0% to 59.6% of the held-out faults, mainly because some faults cause tests to fail through exceptions. Thus, the decrease is not a loss of all fault detection.
Experiment 2: faults near gap outcomes. Table 8 and Figure 5(b) show higher affected-site rates for gap-controlled sites than for checked-controlled sites on every system. On commons-cli, 63.6% of gap-controlled sites are affected, compared with 8.9% of checked-controlled sites. On jsoup, the corresponding rates are 79.2% and 32.3%. The difference ranges from 12.4 percentage points on commons-jxpath to 54.7 percentage points on commons-cli. The conservative 95% interval remains above zero for every system. The intervals are wider for systems with few gap-controlled sites, including commons-csv with 8 sites, commons-cli with 11, and joda-convert with 16. On jfreechart, the affected rates are high in both groups, 88.9% for gap-controlled sites and 59.4% for checked-controlled sites, but the difference remains 29.5 percentage points. Thus, the activated-but-undetected outcomes that Veritas reports point to code where independent faults are more likely to escape the existing tests.
Both experiments agree: higher OBCCG correlates with lower held-out fault detection, and fault sites near activated-but-undetected outcomes more often contain a surviving fault.
Finding 4: Across all eleven systems, weaker checking increases OBCCG and reduces held-out fault detection ( ; slopes -0.62 to -1.57). Faults near activated-but-undetected outcomes show 12.4–54.7 pp higher affected-site rates than faults near checked outcomes.
4.6 Threats to Validity
External Validity. We study eleven open-source Java projects from different domains and of different sizes. The findings may not generalize to other projects, languages, or frameworks. Six projects were also studied by Hossain et al. [15], and we use mature test suites and measure each project at a release with its own tests.
Internal Validity. Our tools and their integration may contain faults. We use ASM and PIT's mutation engine and compare covered outcomes with JaCoCo. Flaky tests are controlled by requiring two identical clean traces and discarding mutant runs whose clean execution differs from the baseline. Timeouts and out-of-memory runs are not counted as detections. In RQ4, assertion disabling is random and was run in two batches; across corresponding points, unassessable outcomes changed by at most 26 on threeten-extra and by 19 or fewer on the other systems.
Construct Validity. RQ4 shows association, not causation: Experiment 1 weakens existing checks without adding tests, and Experiment 2 compares fault sites under the same test suite. RQ4 also uses mutants as a proxy for real faults, although mutant detection has been shown to correlate with real-fault detection [22]. The held-out mutants use operators different from those used by Veritas, avoiding evaluation with the same changes that define the gap. Because Veritas counts unexpected exceptions as detections, OBCC measures detection evidence rather than assertion strength. We therefore report assertion failures and crashes separately.
5 Related Work
Veritas is most closely related to checked coverage, mutation-based localization of weak testing, and work relating adequacy measures to fault detection.
Dependence-Based Checked Coverage. Schuler and Zeller define checked coverage as executed code that influences a value examined by a test oracle, using dynamic slicing [28, 29]. Hossain et al. extend this idea to coverage elements, including object-branch outcomes [15]. We use Slicer4J [2] as the dependence-based baseline in Section 4.4. The difference is the evidence for checking. Dependence-based checked coverage asks whether an outcome influences an asserted value. Veritas asks whether changing that outcome alters execution and causes a previously passing test to fail. It therefore measures detection rather than dependence, includes crash-based detections, and does not require dynamic slicing.
Mutation-Based Testing Gaps. Mutation testing measures whether tests kill program changes [9, 26]. Its unit is the mutant, not the coverage element. A killed mutant does not identify which covered outcome is checked, while a surviving mutant may not have changed the execution. Weak mutation checks for state change but not test failure [16, 25]. Veritas requires both at a specific branch outcome: the forced outcome must alter execution, and a reaching test must fail.
Pseudo-tested methods operate at method granularity [24, 39]; Jain et al.'s oracle gap combines coverage and mutation score for larger program elements [18]; Maton et al. compare several statement-level gap measures [23]. Veritas works at branch-outcome granularity and separates activated-but-undetected outcomes from unresolved ones.
Validation of Adequacy Measures. Coverage alone is an imperfect proxy for fault detection [17], while assertion-based measures can track test effectiveness more closely [42]. Mutant detection also tracks real-fault detection better than statement coverage [22]. Closer to our setting, Hossain et al. relate larger checked-coverage gaps to lower mutant detection [15]; Jain et al. use
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
oracle gaps to identify weakly checked elements [18]; and Maton et al. compare the fault-detection behavior of statement-level gap measures [23]. Our RQ4 performs this validation at the object-branch level, using held-out faults that do not reuse the outcome-forcing changes from which Veritas constructs the gap.
6 Discussion
For developers. Coverage tells a developer what the tests execute; Veritas identifies covered outcomes whose changes are not detected. Each reported outcome comes with the mutant and the tests that reached it, so the result is actionable rather than only a score. Outcomes that are never activated by a mutant call for new inputs, if feasible (Section 4.3); outcomes that are activated but undetected point to tests that may need a different input or a stronger check. Because the gaps are often concentrated in a few classes (Section 4.2), inspection can start there rather than across the whole system.
For testing tools and researchers. The outcome-level report can guide test generation, assertion generation, and test review. A generator can target an uncovered or inactive outcome with a new input, then strengthen observation when the changed outcome is executed but undetected. The same representation also gives researchers a common unit for comparing coverage, mutation testing, and checked coverage: the individual branch outcome.
Interpreting the gap. An outcome without checking evidence is not necessarily a faulty test. Some activated-but-undetected outcomes require a different input, some affect behavior that the current test does not observe, and some changes are behavior-preserving (Section 4.2.3). Unresolved outcomes are reported separately. Likewise, a crash is evidence that a change is detected, but not that an assertion checked the affected value. OBCC should therefore be read as evidence of detection over covered behavior, not as a direct measure of oracle quality.
Path to adoption. Dependence-based checked coverage needs a dynamic slicer, and the available Java slicers are hard to apply to modern Java systems: Slicer4J produced no result on three of our eleven subjects (Section 4.4). Veritas avoids that dependency and builds on mutation-testing infrastructure already familiar to developers. It can therefore sit beside coverage and PIT: coverage identifies what is not executed, PIT reports which mutants survive, and Veritas identifies which covered branch outcomes lack detection evidence.
7 Conclusion
Structural coverage shows which branch outcomes a test suite executes, but not whether the tests would detect a change to them. We presented Veritas, which measures this distinction for individual object-branch outcomes. For each covered outcome, it forces the opposite outcome, verifies that execution changes, and credits checking only when a previously passing test fails and the failure can be attributed to that outcome. The method requires no dynamic slicer and retains the mutant and tests that support each classification. Across eleven Java systems, Veritas found checking evidence for 79.8% of covered outcomes; 18.2% were activated but undetected and 2.0% were unresolved. The gaps occurred in every system, often concentrated in a small number of classes, and appeared in one third of fully covered methods. Compared with mutation testing and slicing-based checked coverage, Veritas distinguishes missing activation from missing detection and provides outcome-level evidence for both. When assertions were weakened, OBCCG increased as independent fault detection fell, and fault sites near activated-but-undetected outcomes more often contained a surviving held-out mutant than sites near checked outcomes. By avoiding dynamic slicing and building on mutation infrastructure, Veritas offers a practical route for bringing checked coverage closer to routine testing. Future work can improve through incremental analysis and use the reported gaps to guide test generation, assertion generation, and developer review.
References
[1] Hiralal Agrawal and Joseph R. Horgan. 1990. Dynamic program slicing. SIGPLAN Not. 25, 6 (June 1990), 246–256. doi:10.1145/93548.93576
[2] Khaled Ahmed, Mieszko Lis, and Julia Rubin. 2021. Slicer4J: a dynamic slicer for Java (ESEC/FSE 2021). Association for Computing Machinery, New York, NY, USA, 1570–1574. doi:10.1145/3468264.3473123
[3] Toufique Ahmed, Premkumar Devanbu, Christoph Treude, and Michael Pradel. 2025. Can LLMs Replace Manual Annotation of Software Engineering Artifacts?. In 2025 IEEE/ACM 22nd International Conference on Mining Software Repositories (MSR) (Ottawa, ON, Canada). IEEE Press, 526–538. doi:10.1109/MSR66628.2025.00086
[4] Paul Ammann and Jeff Offutt. 2016. Introduction to Software Testing (2nd ed.). Cambridge University Press.
[5] Eric Bruneton, Romain Lenglet, and Thierry Coupaye. 2002. ASM: A Code Manipulation Tool to Implement Adaptable Systems. In Adaptable and Extensible Component Systems. Grenoble, France.
[6] Tae Joon Byun, Vaibhav B. Sharma, Sanjai Rayadurgam, Stephen A. McCamant, and Mats P. E. Heimdahl. 2017. Toward Rigorous Object-Code Coverage Criteria. In 2017 IEEE 28th International Symposium on Software Reliability Engineering (ISSRE). IEEE, 328–338. doi:10.1109/ISSRE.2017.33
[7] John Joseph Chilenski and Steven P. Miller. 1994. Applicability of Modified Condition/Decision Coverage to Software Testing. Software Engineering Journal 9, 5 (1994), 193–200. doi:10.1049/sej.1994.0025
[8] Henry Coles, Thomas Laurent, Christopher Henard, Mike Papadakis, and Anthony Ventresque. 2016. PIT: a practical mutation testing tool for Java (demo). In Proceedings of the 25th International Symposium on Software Testing and Analysis (Saarbrücken, Germany) (ISSTA 2016). Association for Computing Machinery, New York, NY, USA, 449–452. doi:10.1145/2931037.2948707
[9] R.A. DeMillo, R.J. Lipton, and F.G. Sayward. 1978. Hints on Test Data Selection: Help for the Practicing Programmer. Computer 11, 4 (1978), 34–41. doi:10.1109/C-M.1978.218136
[10] EclEmma. 2024. JaCoCo Java Code Coverage Library. https://www.jacoco.org/jacoco/. Accessed: 2026-07-31.
[11] FasterXML. 2024. Jackson Core. https://github.com/FasterXML/jackson-core. Version 2.17.2. Accessed: 2026-09-30.
[12] Clemens Hammacher. 2008. Design and Implementation of an Efficient Dynamic Slicer for Java. Bachelor's Thesis.
[13] Clemens Hammacher. 2022. JavaSlicer. https://github.com/hammacher/javaslicer Open-source dynamic slicing tool for Java.
[14] Jonathan Hedley. 2024. jsoup: Java HTML Parser. https://github.com/jhy/jsoup. Version 1.18.1. Accessed: 2026-09-30.
[15] Soneya Binta Hossain, Matthew B. Dwyer, Sebastian Elbaum, and Anh Nguyen-Tuong. 2023. Measuring and Mitigating Gaps in Structural Testing. In Proceedings of the 45th International Conference on Software Engineering (Melbourne, Victoria, Australia) (ICSE '23). IEEE Press, 1712–1723. doi:10.1109/ICSE48619.2023.00147
[16] W. E. Howden. 1982. Weak Mutation Testing and Completeness of Test Sets. IEEE Trans. Softw. Eng. 8, 4 (July 1982), 371–379. doi:10.1109/TSE.1982.235571
[17] 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 (Hyderabad, India) (ICSE 2014). Association for Computing Machinery, New York, NY, USA, 435–445. doi:10.1145/2568225.2568271
[18] Kush Jain, Goutamkumar Tulajappa Kalburgi, Claire Le Goues, and Alex Groce. 2023. Mind the Gap: The Difference Between Coverage and Mutation Score Can Guide Testing Efforts. In 2023 IEEE 34th International Symposium on Software Reliability Engineering (ISSRE). 102–113. doi:10.1109/ISSRE59848.2023.00036
[19] JFree. 2025. JFreeChart. https://github.com/jfree/jfreechart. Version 1.5.6. Accessed: 2026-09-30.
[20] JFree. 2025. JFreeSVG. https://github.com/jfree/jfreesvg. Version 5.0.7. Accessed: 2026-09-30.
[21] Joda.org. 2024. Joda-Convert. https://github.com/JodaOrg/joda-convert. Version 3.0.1. Accessed: 2026-09-30.
[22] 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 (Hong Kong, China) (FSE 2014). Association for Computing Machinery, New York, NY, USA, 654–665. doi:10.1145/2635868.2635929
[23] Megan Maton, Gregory M. Kapfhammer, and Phil McMinn. 2025. Where Tests Fall Short: Empirically Analyzing Oracle Gaps in Covered Code. In Proceedings of the ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM). IEEE, 1–11. doi:10.1109/ESEM64174.2025.00063
[24] 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 (Austin, Texas) (CSED '16). Association for Computing Machinery, New York, NY, USA, 23–29. doi:10.1145/2896941.2896944
[25] A. J. Offutt and S. D. Lee. 1994. An Empirical Evaluation of Weak Mutation. IEEE Trans. Softw. Eng. 20, 5 (May 1994), 337–344. doi:10.1109/32.286422
[26] Mike Papadakis, Marinos Kintis, Jie Zhang, Yue Jia, Yves Le Traon, and Mark Harman. 2019. Chapter Six - Mutation Testing Advances: An Analysis and Survey. Advances in Computers, Vol. 112. Elsevier, 275–378. doi:10.1016/bs.adcom.2018.03.015
Md Nafiu Rahman, Cemil Canbaz, and Soneya Binta Hossain
[27] RTCA. 2011. DO-178C: Software Considerations in Airborne Systems and Equipment Certification. Technical Report. RTCA, Inc., Washington, DC, USA.
[28] David Schuler and Andreas Zeller. 2011. Assessing Oracle Quality with Checked Coverage (ICST '11). IEEE Computer Society, USA, 90–99. doi:10.1109/ICST.2011.32
[29] 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
[30] Amanda Schwartz, Daniel Puckett, Ying Meng, and Gregory Gay. 2018. Investigating faults missed by test suites achieving high code coverage. J. Syst. Softw. 144, C (Oct. 2018), 106–120. doi:10.1016/j.jss.2018.06.024
[31] August Shi, Jonathan Bell, and Darko Marinov. 2019. Mitigating the effects of flaky tests on mutation testing. In Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis (Beijing, China) (ISSTA 2019). Association for Computing Machinery, New York, NY, USA, 112–122. doi:10.1145/3293882.3330568
[32] The Apache Software Foundation. 2024. Apache Commons CLI. https://github.com/apache/commons-cli. Version 1.9.0. Accessed: 2026-09-30.
[33] The Apache Software Foundation. 2024. Apache Commons Codec. https://github.com/apache/commons-codec. Version 1.17.1. Accessed: 2026-09-30.
[34] The Apache Software Foundation. 2024. Apache Commons CSV. https://github.com/apache/commons-csv. Version 1.11.0. Accessed: 2026-09-30.
[35] The Apache Software Foundation. 2025. Apache Commons JXPath. https://github.com/apache/commons-jxpath. Version 1.4.0. Accessed: 2026-09-30.
[36] The Apache Software Foundation. 2026. Apache Commons Validator. https://github.com/apache/commons-validator. Version 1.11.0. Accessed: 2026-09-30.
[37] The JUnit Team. 2024. JUnit 5. https://junit.org/junit5/. Accessed: 2026-09-24.
[38] ThreeTen. 2026. ThreeTen-Extra. https://github.com/ThreeTen/threeten-extra. Version 1.10.0. Accessed: 2026-09-30.
[39] Oscar Luis Vera-Pérez, Martin Monperrus, and Benoit Baudry. 2018. Descartes: a PITest engine to detect pseudo-tested methods: tool demonstration. In Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering (Montpellier, France) (ASE '18). Association for Computing Machinery, New York, NY, USA, 908–911. doi:10.1145/3238147.3240474
[40] Mark Weiser. 1981. Program slicing. In Proceedings of the 5th International Conference on Software Engineering (San Diego, California, USA) (ICSE '81). IEEE Press, 439–449.
[41] Edwin B. Wilson. 1927. Probable Inference, the Law of Succession, and Statistical Inference. J. Amer. Statist. Assoc. 22, 158 (1927), 209–212. doi:10.1080/01621459.1927.10502953
[42] Yucheng Zhang and Ali Mesbah. 2015. Assertions are strongly correlated with test suite effectiveness. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering (Bergamo, Italy) (ESEC/FSE 2015). Association for Computing Machinery, New York, NY, USA, 214–224. doi:10.1145/2786805.2786858