testing

  • Postman collections in CI: when contract tests make them redundant

    We maintained a Newman Postman collection runner in our CI pipeline for three years to verify API endpoint status codes. As our OpenAPI schemas became the single source…

  • Why we retained JUnit XML test reports in GitHub Actions

    When tests fail in CI, reading through 4,000 lines of standard output in GitHub Actions logs is a slow, frustrating developer experience. Publishing JUnit test annotations places failure…

  • Measuring code quality regressions in AI-assisted PRs over 6 months

    Between May and November 2026, four hundred pull requests were merged across our primary backend services. Half of our engineering team adopted autonomous coding assistants daily, while the…

  • Testing deterministic tools invoked by stochastic models

    Testing agent workflows by prompting an actual LLM in continuous integration creates flaky, expensive test suites that fail randomly whenever model weights or temperatures fluctuate. The correct testing…

  • Testing asynchronous events with an in-memory bus spy

    Testing that domain events are published should not require spinning up RabbitMQ containers in unit test suites or mocking complex message transport interfaces. An in-memory spy replaces dozens…

  • A Git hook that rejected merges missing contract tests

    Whenever a developer modified an API payload contract in src/Contracts/, downstream consumers frequently broke because unit tests mocked the contract instead of asserting on real contract fixtures. Enforcing…

  • Replacing a custom assertion with PHPUnit 12 native constraints

    Over four years our test suite accumulated twelve helper traits providing assertions like assertArrayMatchesSchema(). Maintaining these across PHPUnit version upgrades was a steady tax of deprecated internal class…

  • A quarantined test, three deadlines, and a real race

    A test skipped since 2023 under a policy with deadlines, extended three times, covering a payment path. A quarantine deadline that can be extended is a policy with…

  • A review agent, and what it is allowed to say

    The only agent permitted near a pull request, constrained to a specific kind of comment. Restricting it to conventions is what makes it useful — the convention findings…

  • A thousand runs, and what that proves

    A test run a thousand times to establish that a flake is fixed, and what that number actually supports. A thousand clean runs bounds the failure rate rather…