Suppose a team has a short list of test cases it expects to see in every run of a particular suite. The report says that many cases passed. It also has a row for a case that was skipped. A reviewer who looks only at the total still has to ask whether the cases on the list are among the passes. We examined a checker that takes an expected set and reads case by case through a test report. In local fixtures, it gave different explanations for a required case that was absent and one that was present but skipped.
Ask for the case by name
Imagine a list with three entries. One of them is a particular input to a parameterized test. The fixture for a complete report supplied all three required records with passing outcomes. The checker returned no problems for the expected set. In the missing-case fixture, the report kept the other two records and omitted the parameterized case. The checker identified the specific case as missing. A passing record for another input would answer a question about that input. The expected set here asks for the particular case named in the list.
The skipped-case fixture kept a record for the same input, but that record said it was skipped. The checker reported it in the category for cases seen without a pass. The distinction gives the reviewer different information about the report. With a missing record, the checker cannot find the expected identity. With a skip, it can find the identity and read the reported outcome. Neither observation supplies a passing result for that case. Keeping the diagnoses separate makes it possible to see which gap the evidence actually contains before investigating what caused it.
Read every result for a repeated case
A report can contain more than one record for a case. One synthetic report contained a failure followed by a pass for the same required case. The checker still flagged it. Its rule for repeated records in that report requires every record for the case to pass. That choice prevents a later passing entry in the same file from erasing the earlier failed entry. The fixture exercises one report with both records. It leaves open how a team should interpret separate runs or whether an independent rerun resolves the original failure.
The complete-report fixture also included a failure for an unrelated case. The expected set still had no problems according to this checker. That result makes its scope visible. The checker evaluates the named cases, while the ordinary suite result still has to account for the unrelated failure. A reviewer needs both observations to interpret the run. A clean result for the required set gives evidence about those named cases, and the overall result gives evidence about the rest of the run as well.
Keep the report and the check result together
A separate fixture supplied no report file at all. The command returned a failure in that case. That result answers a question that comes before classification. Was there a report to inspect? When a file is available, the checker can distinguish an absent case from a present skip. When the file is unavailable, those item-level conclusions have no input. Another fixture supplied a readable report with only an unrelated case. The checker could read that file and report that the required cases were missing. Recording the reason for a failed check keeps these two situations from collapsing into the same unexplained status.
Six selected local fixtures passed at the merged revision. They used synthetic records to exercise report handling. A hosted job separately logged that the checker found passing results for all 14 required cases in its report. That hosted result describes one run and its expected set. It leaves report provenance and the adequacy of that set as separate questions. If a release decision depends on particular cases, the count of passing tests is only one part of the record. The reviewer can also compare the named cases with the outcomes in the report and retain the result of the full suite. Together those records say which checks were expected, what the report showed for them, and what the broader run reported.
← All engineering articles