Closed
Description
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/214712913
Implementation
Check that all files in all modules do not contains any imports from \Magento\Tests\NamingConvention
namespace