[TASK] Add mutation testing with Infection #216

Merged
Anja Leichsenring merged 13 commits from quality_gate into main 2026-11-11 10:30:27 +00:00

New and changed code must reach 100% coverage and 100% MSI over unit
and functional tests together, with no skipped mutants
(AGENTS.md, "Coverage and mutation score").

  • infection.json5 mutates Classes/; ProtectedVisibility is off, since
    non-final classes expose protected members by design.
  • AbstractFunctionalTestCase::getInstanceIdentifier() keys the test
    instance on TEST_TOKEN as well, so parallel Infection threads running
    the same functional test class no longer share one instance.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Anja Leichsenring aleichsenring@ab-softlab.de

New and changed code must reach 100% coverage and 100% MSI over unit and functional tests together, with no skipped mutants (AGENTS.md, "Coverage and mutation score"). - infection.json5 mutates Classes/; ProtectedVisibility is off, since non-final classes expose protected members by design. - AbstractFunctionalTestCase::getInstanceIdentifier() keys the test instance on TEST_TOKEN as well, so parallel Infection threads running the same functional test class no longer share one instance. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Add mutation testing with Infection
All checks were successful
CI / base-qa (pull_request) Successful in 44s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 11m36s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 11m47s
51e2d088aa
New and changed code must reach 100% coverage and 100% MSI over unit
and functional tests together, with no skipped mutants
(AGENTS.md, "Coverage and mutation score").

- infection.json5 mutates Classes/; ProtectedVisibility is off, since
  non-final classes expose protected members by design.
- AbstractFunctionalTestCase::getInstanceIdentifier() keys the test
  instance on TEST_TOKEN as well, so parallel Infection threads running
  the same functional test class no longer share one instance.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Anja Leichsenring force-pushed quality_gate from 51e2d088aa
All checks were successful
CI / base-qa (pull_request) Successful in 44s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 11m36s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 11m47s
to 25b9e03cf1
All checks were successful
CI / base-qa (pull_request) Successful in 47s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 8m50s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 6m49s
2026-11-10 08:54:22 +00:00
Compare
Anja Leichsenring force-pushed quality_gate from 25b9e03cf1
All checks were successful
CI / base-qa (pull_request) Successful in 47s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 8m50s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 6m49s
to e1553bf8e6
All checks were successful
CI / base-qa (pull_request) Successful in 44s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 11m40s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 11m51s
2026-11-11 08:30:43 +00:00
Compare
[TASK] Run mutation testing and the baseline check in CI
Some checks failed
CI / mutation-full (pull_request) Has been skipped
CI / base-qa (pull_request) Successful in 48s
CI / advanced-qa (84, ^14.3) (pull_request) Failing after 1m45s
CI / advanced-qa (85, ^14.3) (pull_request) Failing after 1m48s
CI / mutation-gate (pull_request) Has been cancelled
9dfcd22600
Build/Scripts/infection.sh holds the mutation gate for changed lines
and the full run, which ends with a check of line coverage and MSI
against Build/quality-baseline.json. Pull requests get the QA, the
tests and the gate in parallel jobs; a merge to main gets only the
full run. Every CI step prints its name as a headline.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Run the full mutation run in its own workflow
Some checks failed
CI / base-qa (pull_request) Successful in 43s
CI / advanced-qa (84, ^14.3) (pull_request) Failing after 1m44s
CI / advanced-qa (85, ^14.3) (pull_request) Failing after 1m46s
CI / mutation-gate (pull_request) Has been skipped
fb0d5c0021
Forgejo queues a job before evaluating its condition, so the full run
showed up on every pull request. It now has a workflow of its own,
triggered by a push to main. The mutation gate waits for the advanced
QA instead of running beside it.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Raise the MSI baseline to 98.56%
Some checks failed
CI / base-qa (pull_request) Successful in 43s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 11m56s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 12m1s
CI / mutation-gate (pull_request) Has been cancelled
f52db1264f
The baseline check rejects a coverage report without a line total
instead of reading it as 0%.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Run the PHP 8.4 tests only once, with coverage
Some checks failed
CI / base-qa (pull_request) Successful in 44s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 2m8s
CI / advanced-qa (85, ^14.3) (pull_request) Has been cancelled
CI / Tests and mutation gate on PHP 8.4 (pull_request) Has been cancelled
8264d0da6b
The coverage run of the mutation gate fails on failing tests as well,
so the plain run is left to the PHP versions without coverage.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Run the tests and mutation gate beside the advanced QA
All checks were successful
CI / base-qa (pull_request) Successful in 44s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 2m5s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 11m53s
CI / Tests and mutation gate on PHP 8.4 (pull_request) Successful in 19m8s
c5338f0fd0
The job runs the PHP 8.4 tests itself, so waiting for the advanced QA
of every PHP version only delays it.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Print only the coverage totals in CI
Some checks failed
CI / base-qa (pull_request) Successful in 48s
CI / advanced-qa (84, ^14.3) (pull_request) Successful in 2m6s
CI / advanced-qa (85, ^14.3) (pull_request) Successful in 12m9s
CI / Tests and mutation gate on PHP 8.4 (pull_request) Successful in 19m46s
Mutation testing / mutation-full (push) Has been cancelled
a45be2c43f
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Anja Leichsenring deleted branch quality_gate 2026-11-11 10:30:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
typo3/thuecat!216
No description provided.