Repository navigation
test: migrate the test suite to Testo - #12
Merged
Merged
Conversation
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>
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
The test suite runs on Testo through the
cycle/testingharness instead of PHPUnit.tests/Featurejoinedtests/Unit(no test needs a database); stub providers and schema files moved totests/Fixtures.composer testandtest:unitrun the suite; thephpunit.ymlworkflow is replaced by the shared one (see CI).phpunit.xml.Test counts vs the PHPUnit baseline
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-actionstesto.ymlworkflow in.github/workflows/testing.ymlwithdrivers: '[]', which replacesmain.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 theunitflag.Why?
Part of moving the Cycle packages to Testo on the shared
cycle/testingharness, so every package runs its suites the same way.Checklist