-
Notifications
You must be signed in to change notification settings - Fork 159
[New Rule] No imports from static tests namespaces #142
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
Labels
accepted
New rule is accepted
Comments
As per magento/architecture#290 it was decided to prohibit any |
Hello @lenaorobei , |
@konarshankar, severity - 8, type - warning. |
lenaorobei
added a commit
to konarshankar07/magento-coding-standard
that referenced
this issue
Dec 11, 2019
lenaorobei
added a commit
that referenced
this issue
Dec 11, 2019
#142 : [New Rule] No imports from static tests namespaces
magento-devops-reposync-svc
pushed a commit
that referenced
this issue
Dec 22, 2021
Run tests on php 8.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rule
I suggest to add one rule that will check that there is no imports from static tests namespaces.
Reason
Time to time we're getting issue with running tests on PRs in magento/magento2 repository because someone imported
\Magento\Tests\NamingConvention\true\string
by mistake. As result - we have "No build reports available" for "Database Compare build", "Functional Tests build", "Sample Data Tests build" while Static tests are shown as "failing" but in results - we don't really have reason. Example: https://github.com/magento/magento2/runs/214712913Implementation
Check that all files in all modules do not contains any imports from
\Magento\Tests\NamingConvention
namespaceThe text was updated successfully, but these errors were encountered: