Skip to content

Tests: behaviors shown untested by the surviving mutants (skip, stop propagation, xpath, base_path, cached ttl, libxml state) #422

Closed

Description

@njoubert-cleverage

A mutation testing run (Infection) on the core shows important behaviors that no test checks (surviving mutants, mutation score 78.2 % of 2,663 mutants):

  • ProcessManager:
    • the skip error strategy prevents the next tasks of the item, and the default error output;
    • the propagation of the stop of a process (ProcessState::stop(), ProcessStoppedException) to the parent tasks;
    • an empty iterable, and a stop during the flush of a task;
    • the order of the tasks of ProcessConfiguration::getMainTaskGroup().
  • Tasks and transformers:
    • single_result and ignore_missing of xpath_evaluator;
    • base_path of InputCsvReaderTask and InputFolderBrowserTask;
    • ttl of cached;
    • the restoration of the libxml state (libxml_use_internal_errors()), the flags of the SplFileObject of the file readers.

Add tests for these behaviors (no change of the code expected; a test failing would be a bug to fix in its own ticket).

Found during the audit v3 (audit-v3-angles.md #209).

Activity

  1. added a commit that references this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions