Skip to content

Keeping the test-utils class while removing the tests. #3158

Closed
@VincentLanglet

Description

@VincentLanglet

I saw multiple issue about adding or removing the tests from the gitattributes
#548
#1908

Imho there is two king of files in the tests/ dirs

  • Tests which are used to test a specific sniff/file
  • Utils files which are used to run the test

I think the best would be to exclude the first ones but keep the second one (for developper which use them to run test

For instance, it's right to export-ignore this in the next major.

/src/Standards/Generic/Tests export-ignore
/src/Standards/MySource/Tests export-ignore
/src/Standards/PEAR/Tests export-ignore
/src/Standards/PSR1/Tests export-ignore
/src/Standards/PSR2/Tests export-ignore
/src/Standards/PSR12/Tests export-ignore
/src/Standards/Squiz/Tests export-ignore
/src/Standards/Zend/Tests export-ignore

But I'm more concern about this line

/tests export-ignore

When we're writing on our sniff,
The class tests\Standards\AbstractMethodUnitTest is useful.
Same for tests\bootstrap.php and maybe others (and all the dependencies).

Maybe there's something to do about it, like not excluding everything or moving some files somewhere else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions