Skip to content

Exclude tests from package distribution #2300

@neomerx

Description

@neomerx

Currently if phpunit is installed as a project dependency, composer downloads it with tests and some other not necessary files. And some of the phpunit names get IDE code helpers messy

image

The solution is to instruct git/composer to ignore some of the files and folders by adding to .gitattributes a list of files/folders

/tests              export-ignore
/.gitattributes     export-ignore
/.gitignore         export-ignore
/.php_cs            export-ignore
/.travis.yml        export-ignore
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions