Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test: migrate field serializer coverage to unit tests#16759

Open
Jonas Elfering (keulinho) wants to merge 5 commits into
trunkfrom
codex/migrate-field-serializer-tests
Open

test: migrate field serializer coverage to unit tests#16759
Jonas Elfering (keulinho) wants to merge 5 commits into
trunkfrom
codex/migrate-field-serializer-tests

Conversation

@keulinho
Copy link
Copy Markdown
Contributor

1. Why is this change necessary?

Some field serializer coverage lived in integration tests even though the behavior can be tested directly with focused unit tests. Moving this low-level behavior into unit tests improves coverage in the faster suite and reduces integration test scope.

2. What does this change do, exactly?

Moves pure field serializer and related field behavior coverage into unit tests, trims duplicated integration coverage, and keeps only smoke coverage where repository/service wiring still matters.

It also refactors the int and string field serializer unit tests into smaller, readable scenarios. The string serializer test now folds create/update assertions into each scenario so providers only describe the actual value and flag behavior.

3. Describe each step to reproduce the issue or behaviour.

Run the affected field serializer unit tests and compare them with the removed integration-only coverage.

4. Please link to the relevant issues (if any).

5. Checklist

  • I have written tests and verified that they fail without my change
  • I have updated developer-facing release notes if this change is relevant for external developers:
    • Add a short entry to RELEASE_INFO-6.<major>.md under “Upcoming” for informational changes, including the consequences of the change and how it affects external developers.
    • Add an UPGRADE section in UPGRADE-6.<next-major>.md for breaking changes (what/why/impact/how to adapt).
    • See the Documenting a Release Process for details.
  • I have written or adjusted the documentation according to my changes
  • This change has comments for package types, values, functions, and non-obvious lines of code
  • I have read the contribution requirements and fulfilled them

@github-actions
Copy link
Copy Markdown

Warnings
⚠️ The Pull Request doesn't contain any release info, if your changes are relevant for external developers please add an entry to the release info file, including the consequences of the change and how it affects external developers. For detailed infos please refer to the [release documentation guide](https://github.com/shopware/shopware/blob/trunk/delivery-process/documenting-a-release.md).

@explore-openapi
Copy link
Copy Markdown

explore-openapi Bot commented May 11, 2026

OpenAPI Snapshot

ℹ️ shopware/store-api — schema identical to base trunk

ℹ️ shopware/admin-api — schema identical to base trunk

📋 Additional Information

⚠️ Changes are matching an older version of the schema. Update the branch to make sure that the schema diff is correct.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.37%. Comparing base (4cf23c9) to head (7f950b8).
⚠️ Report is 2 commits behind head on trunk.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #16759      +/-   ##
==========================================
+ Coverage   62.28%   62.37%   +0.09%     
==========================================
  Files        4834     4836       +2     
  Lines      175922   175992      +70     
  Branches     9989     9989              
==========================================
+ Hits       109568   109773     +205     
+ Misses      63415    63280     -135     
  Partials     2939     2939              
Flag Coverage Δ
phpunit-migration 91.42% <ø> (ø)
phpunit-unit 56.66% <ø> (+0.16%) ⬆️

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@keulinho Jonas Elfering (keulinho) added component/core domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends labels May 11, 2026
@keulinho Jonas Elfering (keulinho) marked this pull request as ready for review May 11, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/core domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends milestone/6.7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants