Review 14.3 Merged

97529[TASK] Guide test level and test doubles in agent guidelines

Oli Bartsch CR +2 V +2 Easy +24 −1 updated 11/11/26, 09:14

Commit message

Agents follow the rule to reproduce a bug with a test first and tend
to write functional tests for that, even where a unit test can
reproduce the bug. Every functional test runs on each supported DBMS
in CI and makes the pipeline considerably slower. Pushing them toward
unit tests alone, however, produces tests that rebuild the framework
from mocks and accessible proxies, which prove little and break on
every refactoring.

AGENTS.md now picks the test level by what the subject needs to run,
sets rules for test doubles (real objects first, stubs over mocks, no
partial mocks of the subject, no access to protected members), and
asks to extend existing functional test cases before adding new ones.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Oli Bartsch uploaded patch set 1 11/10/26, 22:51

  2. core-ci voted on patch set 1 V +1 11/10/26, 23:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113996

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 11/11/26, 09:14

  4. Oli Bartsch merged patch set 2 11/11/26, 09:14