Skip to content

Files mapped to dev/tests by "required" composer packages #8971

Open
@korostii

Description

@korostii

The composer.json file distributed with the application contains separate sections "require" and "require-dev" sections.
It is commonly expected that "require" section only contains dependencies necessary for production use, and not tests, tools used for development etc.

Preconditions

  1. Magento 2.1.5 CE from https://magento.com/tech-resources/download

Steps to reproduce

  1. Run "composer install --no-dev"

Expected result

  1. No folder "dev/" in the application root or empty "dev" folder.

Actual result

  1. Some files inside under dev/

To be precise, it is the magento2-base package maps quite a lot of its files into the dev folder, namely subfolders "dev/tools", "dev/travis" and "dev/tests/". These do not seem to be an integral part of the application itself, and as such must be separate into a package included inside the "require-dev" section of the composer. Accordingly, it would also be nice to see the "dev" folder added into the sample ".gitignore" file distributed with the package available from https://magento.com/tech-resources/download.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ComposerIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: ready for devReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions