Skip to content

test(testing): follow successive applications within one test - #755

Merged
ogorzalka merged 1 commit into
developfrom
fix/testing-replay-mutant-order
Dec 4, 2026
Merged

ogorzalka merged 1 commit into
developfrom
fix/testing-replay-mutant-order

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

What

Tests only. Three files of tests/Feature/Testing/ follow what one application leaves to the next, spread over several tests that only held when all of them ran, in order. Each scenario is now a single test that boots the successive applications itself (BootsNextApplication, the tear-down and set-up PHPUnit runs between two tests).

Why

The release pull request (#754) fails Mutation testing (new files): against main, src/Testing/OncePerProcessHooks.php is new, the gate runs the tests covering it, that selection leaves out the first test of ReplaysModuleRegistrationsTest, and the two following ones fail on an unchanged mutant. On pull requests into develop the gate did not meet that file together with these tests.

This also corrects the note under "What is not proved" in #753: the failure is not specific to macOS.

What it proves

  • Every assertion of the former tests is kept (38 assertions in tests/Feature/Testing, before and after); nine tests become three, none is skipped.
  • composer qa:fast passes (PHP 8.4, memory limit raised).

What it does not prove

  • The CI of this pull request does not run the failing gate: nothing is new against develop. The check against main is run locally and reported in a comment before the merge.

The files that watch what one application leaves to the next spread the
scenario over several tests, which only held when all of them ran, in
order. The mutation gate runs the tests covering a source file: on the
pull request into main, where src/Testing is new, it selected some of
them and refused to score.
@ogorzalka

Copy link
Copy Markdown
Member Author

Local check of the failing gate, as the release pull request runs it (pollora-qa check --mutation --mutation-base=origin/main, macOS, PHP 8.4 with pcov, head 8704b285): every gate passes. Mutation testing (new files): 80.16 % over the 5 new files (198 tested, 49 untested), minimum 80 %. The margin is small and this is not a Linux measure: the run of #754 after the merge is the proof there.

@ogorzalka
ogorzalka merged commit 417e090 into develop Dec 4, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant