Skip to content

Allow running tests for modules installed in Magento instance via vendor directory.  #162

Closed
@lazyguru

Description

@lazyguru

Allow running tests for modules installed in Magento instance via vendor directory.

Preconditions

  1. Install Magento 2.2.x or later
  2. Install custom module using composer (so module is installed under MAGENTO_BP/vendor
  3. Custom module contains tests under Test/Mftf
  4. Mftf is installed and configured per DevDocs instructions

Steps to reproduce

  1. cd MAGENTO_BP/dev/tests/acceptance
  2. vendor/bin/robo generate:tests

Expected result

  1. Tests from custom module are generated under MAGENTO_BP/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/default

Actual result

  1. Custom module is completely ignored as MAGENTO_BP/vendor is not parsed as a location for tests. Only the following paths are parsed:
    a. MAGENTO_BP/app/code/
    b. MAGENTO_BP/dev/tests/acceptance/vendor
    c. MAGENTO_BP/dev/tests/acceptance/tests/functional/Magento/FunctionalTest

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions