Skip to content

test: migrate the test suite to Testo - #12

Merged
roxblnfk merged 8 commits into
1.xfrom
test/testo
Nov 20, 2026
Merged

roxblnfk merged 8 commits into
1.xfrom
test/testo

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What was changed

The test suite runs on Testo through the cycle/testing harness instead of PHPUnit.

  • tests/Feature joined tests/Unit (no test needs a database); stub providers and schema files moved to tests/Fixtures.
  • composer test and test:unit run the suite; the phpunit.yml workflow is replaced by the shared one (see CI).
  • Deleted: phpunit.xml.

Test counts vs the PHPUnit baseline

Suite PHPUnit Testo
Unit 109 (175 assertions) 109 (158 assertions)

The assertion total drops because PHPUnit counted each expectException() as an assertion; the tests are the same.

CI

Tests run through the shared cycle/gh-actions testo.yml workflow in .github/workflows/testing.yml with drivers: '[]', which replaces main.yml: the Unit suite on PHP 8.2–8.6 with highest dependencies and on PHP 8.2 with lowest, coverage from PHP 8.6 uploaded to Codecov under the unit flag.

Why?

Part of moving the Cycle packages to Testo on the shared cycle/testing harness, so every package runs its suites the same way.

Checklist

  • Tested
    • Unit suite passes locally

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
The mechanical Rector pass stays apart from the hand edits that follow, so each can be reviewed on its own.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
No test needs a database, so tests/Feature has nothing a Unit test lacks.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk
roxblnfk requested a review from a team November 20, 2026 11:57
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (03205c1) to head (5518ff6).

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x      #12      +/-   ##
============================================
- Coverage     99.61%   99.51%   -0.10%     
============================================
  Files            12       12              
  Lines           261      208      -53     
============================================
- Hits            260      207      -53     
  Misses            1        1              
Flag Coverage Δ
unit 99.51% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk
roxblnfk merged commit 596b37b into 1.x Nov 20, 2026
11 of 13 checks passed
@roxblnfk
roxblnfk deleted the test/testo branch November 20, 2026 13:43
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