When writing an extension, would it make sense to add
magento/project-community-edition to the
require-dev section of composer.json?
The idea behind that is that it would only require a
composer install to spin up a complete Magento installation for development or CI.
To set up the database, I would add a post-install script with
To use the testing tools, you'd need to copy the
require-dev sections from
magento/project-community-edition because those are only used from the root, not from requirements.
One disadvantage that I see is that you'd have to change the required version to test on more than two different versions (two because you can specify a range and install once with
--prefer-lowest), but that's relatively easy to work around.
Anything else that I need to consider?