-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Integration testssuite decomposition - Rss and AdminNotification #28733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.4-develop
Are you sure you want to change the base?
Integration testssuite decomposition - Rss and AdminNotification #28733
Conversation
Hi @bartoszkubicki. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔ Approved.
Failing functional tests looks not related to changes form this PR.
Hi @ihor-sviziev, thank you for the review. |
QA not applicable |
Pull Request state was updated. Re-review required.
Need additional discussion to approve such changes, put on hold for now. |
@engcom-Charlie is there any updates about this PR? Can we move it forward? |
Hi @naydav, is there any update? |
Hi @ihor-sviziev , the location of the tests in Magento is under discussion right now. We have the same approach for our bundled extensions, like MSI, Adobe Stock integration, etc. I'll keep you updated and will leave the feedback once we get the decision. It would be great to share with us pros and cons of such approach. Thank you! |
@sidolov pros - having all tests for the module in one place. |
@ihor-sviziev agree with you on dependencies declaration concern. Yeah, |
@ihor-sviziev @sidolov I think in most of cases if integration test have dependency, also tested code has similar dependency (for example integrations tests for checkout needs customer module, but real code needs them also). I don't see any serious problem here. This PR try to show the way to resolve a problem going a little bit opposite way. Let's say we want to remove some modules, that we don't use and it can be done nicely composer (replace with *). This needs well declared dependencies (no hidden) and real modularity (also on test level). However, as long as integration tests are away from modules and are part of project, despite we don't use modules, we make integration tests suite useless as a whole. We have to keep all modules or just don't run them (or manually remove folders for modules we no longer have, what is of course terrible idea, if for example we have to restore module for some reason). |
Risk set to low since tests shouldn't affect other areas. |
Pending discussion and approve of moving integration tests to modules by the Dev Guild |
@sivaschenko any updates on this? One month already passed... Also for some reason this PR was moved again to "review". Does it mean we can approve and merge it? |
Seems like it was mistake. Moved back to correct status |
Completing approval for this pull request can be delayed as we are processing PRs in priority order |
@ihor-sviziev, @sivaschenko what is the status of this PR? |
Description (*)
All idea comes from this issue. @ihor-sviziev I took apart of
Magento_Rss
,Magento_AdminNotification
also, as there is test here which contains also file data provider. Generally, it was very easy to move the test and locally all tests worked the same way. I don't see any problem in moving, and refactoring tests in similar way (optimizing imports, some return types, types hints)Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
** This is cleaned up port of #28053**