Repository navigation
Releases
v1.6.1 — Packagist Patch Order
The patches install in their documented order for an application that requires the package from Packagist, which serves an object's keys in another order than the tag lists them. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a patch, because no patch is added or retired. composer.json lists extra.patches as an array of {description, url} entries instead of an object keyed by description. The same 17 patches are registered in the same order; a package consumer that lists the patch files in its own patches.json is not affected.
What's fixed
- Keep the patch order Packagist serves by listing extra.patches as an array #142
Maintenance and tooling
- Set the wiki written-against release to v1.6.1 #144
v1.6.0 — Coverage Report Reuse
A mutation run can load an existing coverage report and skip the initial suite, and mutant scoring, class constant and parameter default handling are corrected. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a minor, because a patch is added (versioning table). The new patch is opt in: a run reads a coverage report only when PEST_MUTATE_COVERAGE_REPORT names one, and gives its mutant time limit the suite duration from PEST_MUTATE_SUITE_SECONDS; with neither set a run behaves as on v1.5.1. A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change.
What's new
- Skip the initial suite when a coverage report is given #139
What's fixed
- Select tests for every literal in a function parameter default #136
- Keep a class constant mutant on its own line in the class-constant-coverage patch #134
- Score a mutant child that ran no test as untested in the no-test-check patch #133
- Drop the run's own
--log-junitfrom each mutant child #70 - Score a slow covering file's timeout as untested, not as a kill #61
- Score a mutant child that ends silently through exit as a kill #62
Maintenance and tooling
- Set the wiki written-against release to v1.6.0 #140
- Create the dangling symlink with mklink on Windows in the unreadable test #132
- Sync shared skills and rules from uams-claude-skills #57, #135, #137
- Record the no-test-check scoring decision in the decision log #131
- Check that patch descriptions match between composer.json and the README #111
- Describe the cached-mutation rebuild in the
write-mutated-sourcepatch description #108 - Split the isolated-processes patch into activation and no-test check patches #93
- Watch
pestphp/pest#2073for the drop-run-filter removal #91 - Watch
pestphp/pest-plugin-mutate#55for the Windows mutant child removal #89 - Watch
pestphp/pest#2072for the Windows mutant child removal #87 - Add the missing upstream watch rows and record what the unwatched tickets wait on #69
- Watch
pestphp/pest#2071for the stream wrapper patch retirement #67
v1.5.1 — Score a silent Windows stack-overflow exit as a kill
Scores a silent Windows stack-overflow child exit as a kill, so a mutant that recurses without end no longer aborts the run. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a patch, because a patch's content changes under the same pin (versioning table). A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change, as with v1.4.1.
What's fixed
- Score a silent Windows stack-overflow child exit as a kill #59
v1.5.0 — Report unreadable files as present
Adds a 15th patch so the mutation stream wrapper reports an existing file that cannot be read as present, and publishes the wiki from the repository. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a minor, because a patch is added (versioning table). A consumer whose Dependabot bump fails composer install with "Hash mismatch" runs composer patches-relock and commits the patches.lock.json change, as with v1.4.1.
What's new
- Publish the wiki from docs/wiki/ #51
What's fixed
- Report an unreadable file as present from the mutation stream wrapper's url_stat() #53
Maintenance and tooling
v1.4.3 — Generate class-constant mutants under covered-only
Makes --covered-only generate the mutants for a class constant's initializer, so a surviving one is reported instead of omitted. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a patch, because an existing patch changes and none is added (versioning table).
What's fixed
pest-plugin-mutate-class-constant-coverage.patch: under--covered-only, a node inside a class constant's initializer counts as covered when any line of its class is, so the constant's mutants (for exampleRemoveArrayItemon a constant array) are generated and a survivor is reported as untested rather than omitted. PCOV reports no executable line for a constant initializer, so the generation filter skipped every such node and the class reported 100%. A class with no covered line still generates nothing, and without--covered-onlythe population is unchanged. Pull request: #48, ticket #47.
Maintenance and tooling
tests/constants.phpdrivesMutationGeneratorwith a covered class holding a constant array, andtests/check.shruns it. Pull request: #48.
Known open
- A consumer running a whole-suite
--mutaterun needsuams-web/patches-patchwork'spatchwork-directory-wrapper.patchas well as this package, or the run stops with a refusal and no score (#31).
v1.4.2 — Guard hard memory limits
Teaches the isolated-processes guard one more way a mutant's child can die without running a passing test. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a patch, because an existing patch changes and none is added (versioning table).
What's fixed
pest-plugin-mutate-isolated-processes.patch: a mutant whose child exhausts PHP's hard memory limit (Hard memory limit of N bytes exhausted ..., with noFatal error:prefix, from a mutant such asUnwrapSubstrthat makes a shrinking loop unbounded) is scored a kill instead of aborting the run with exit 137. A child that exits 0 with no report, or dies before any test starts, is still refused. Pull request: #46, ticket #45.
Maintenance and tooling
Known open
- A consumer running a whole-suite
--mutaterun needsuams-web/patches-patchwork'spatchwork-directory-wrapper.patchas well as this package, or the run stops with a refusal and no score (#31).
v1.4.1 — Guard compile errors and time limits
Teaches the isolated-processes guard two more ways a mutant's child can die without running a passing test. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a patch, because an existing patch changes and none is added (versioning table).
What's fixed
pest-plugin-mutate-isolated-processes.patch: a mutant whose child dies of a fatal error that names the mutated file (code that does not compile, such as[] = $result;fromRemoveArrayItemon a one-element list destructure) is scored a kill instead of aborting the run. A fatal error in any other file is still refused. Pull request: #42, ticket #40.pest-plugin-mutate-isolated-processes.patch: a mutant whose child runs past PHP's time limit (Maximum execution time of N seconds exceeded, from a suite that callsset_time_limit()) is scored a kill instead of aborting the run. A boot failure for an unrelated reason is still refused. Pull request: #43, ticket #41.
Known open
- A consumer running a whole-suite
--mutaterun needsuams-web/patches-patchwork'spatchwork-directory-wrapper.patchas well as this package, or the run stops with a refusal and no score (#31).
v1.4.0 — Retry a timed-out mutant
Adds a patch that runs a timed-out mutant child again, and lets a mutant whose child dies of a fatal error count as a kill. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a minor, because a patch is added (versioning table). The package now carries fourteen patches.
What's new
pest-plugin-mutate-mutant-timeout-retry.patch, the fourteenth patch: the first time a mutant child times out it is started again, and a timeout is scored only when the second attempt times out too, so a transient slowdown of the machine cannot keep--min=100out of reach. A child that is slow once and then killed scoresTested, slow once and then passing scoresUntested, slow twice scoresTimeout(tests/retry.php). Pull request: #38, ticket #30.
What's fixed
pest-plugin-mutate-isolated-processes.patch: a child that dies of a PHP fatal error naming the test it was running (PHPUnit's "Premature end of PHP process" line, for example an out-of-memory error) is scored a kill, not refused. A death before any test starts is still refused. Pull request: #36, ticket #34.
Maintenance and tooling
- Run the upstream watcher for the threads this package waits on. Pull request: #37.
Known open
v1.3.0 — Stream wrapper order
Adds a stream-wrapper patch, fixes the crashing-mutant abort in the isolated-processes patch, and adds a check that runs in CI. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a minor, because a patch is added (versioning table). The change to an existing patch would alone be a patch release.
What's new
pest-plugin-mutate-stream-wrapper-patchwork.patch, the thirteenth patch: keeps Patchwork in front of Pest's mutation stream wrapper after a pass-through read, so a function a test mocks is still redefined in a mutant child that logs to junit. Without it, a whole-suite run onUAMSWP-Find-a-Docscored a planted survivor killed (193 tested, 100.00%, macOS); with it anduams-web/patches-patchwork's directory patch,1 untested, 192 tested. Pull request: #32, ticket #31.tests/check.shand.github/workflows/patches.yml: install the pinned upstream, apply every patch, and assert the mutant-timeout limit (8 s serial, 56 s at 12 processes for a 3.9 s suite) and the Patchwork order. Consumers need no vendor-assertion test for the timeout patch. Pull request: #24.
Fixed
pest-plugin-mutate-isolated-processes.patch: a mutant child that exits non-zero after printing a failed test but writes no junit report is scored a kill instead of aborting the run; exit 0 with no report, or a failure without a failed-test line, is still refused. Pull request: #28, ticket #27.
Known open
v1.2.0 — Mutant time limit, autoload fix
Adds a mutant time-limit patch and fixes the v1.1.0 autoload defect. Still pinned to pestphp/pest-plugin-mutate 5.0.2.
Version: a minor, because a patch is added (versioning table). The fix to an existing patch would alone be a patch release.
What's new
pest-plugin-mutate-mutant-timeout.patch, the twelfth patch: sizes a mutant child's time limit from the serial work the initial suite stands for, so a--parallelrun does not score timeouts no test caused. Onaether-multisite-formsConfigFields(Windows, 12 processes): the eleven patches give 95 timeouts, the twelve give 0 (137 tested). Pull request: #16.
Fixed
pest-plugin-mutate-isolated-processes.patchnow starts the mutation stream wrapper fromMutate::boot()as well assrc/Autoload.php, so a consumer needs noautoload-devline. Inv1.1.0such a consumer applied no mutations and scored 0.00%. Issue #19, pull request #20.
Known open
- The macOS before-and-after for the timeout patch is tracked in #21.