cli/worker_process_failure
library
Functions
-
workerProcessFailureResults(ProcessResult process, {required int workerIndex, String? outputFile, bool reportHasFailures = false, bool reportHasResults = false, Iterable<String> expectedTestIds = const [], Iterable<String> reportedTestIds = const []})
→ List<EnsembleSingleTestResult>
-
Creates the suite-visible result for a worker that failed outside a test
case. A worker that already reported failed test cases does not need an
additional synthetic result; those cases already preserve the failure. A
nonzero process status after a nonempty, all-passing report is also not
promoted to a synthetic failure: the report is the completed execution
contract and avoids turning a wrapper shutdown status into a test failure.
-
workerReportDecodeFailureResults({required int workerIndex, required Object error, Iterable<String> expectedTestIds = const [], String? outputFile})
→ List<EnsembleSingleTestResult>
-
Preserves a worker-level result when a report exists but cannot be decoded.
The malformed artifact must not discard results already merged from other
workers or turn the entire suite into an uncaught CLI exception.