Skip to content

[New Rule] No imports from static tests namespaces #142

Closed
@ihor-sviziev

Description

@ihor-sviziev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedNew rule is accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions