This module is a part of Imagine'20 Cloud Docker MFTF Lab session.
- Docker: A software that performs operating-system-level virtualization
- Mutagen: A real-time file synchronization and flexible network forwarding, extending the reach of your existing development tools to cloud-based containers and infrastructure
- ECE-Tools: A deployment tool to deploy Magento 2 on Cloud
- Cloud Template: A set of Magento Cloud templates for different Magento 2 versions
- Cloud Docker repository: A source files for Cloud Docker images
- Cloud Docker images: A set of pre-build images on Docker Hub
Follow instruction on DevDocs
If you don't have MFTF dependency added:
composer require "magento/magento2-functional-testing-framework" --no-update && composer update
Toggle
./vendor/bin/ece-docker build:compose --with-selenium
./bin/magento-docker up
./bin/magento-docker ece-redeploy
Toggle
composer config repositories.demo vcs https://github.com/shiftedreality/module-imagine-docker-demo-2020
composer config minimum-stability dev
composer require "magento/module-demo" --no-update
./vendor/bin/ece-docker build:compose --mode developer --with-selenium --sync-engine mutagen
./bin/magento-docker up
./mutagen.sh
This step takes some time. To verify the status, run:
mutagen monitor
./bin/magento-docker ece-redeploy
OR if Magento was previosuly compiled and patched:
./bin/magento-docker ece-deploy
docker-compose run --rm deploy magento-command deploy:mode:set developer
docker-compose run --rm test magento-command config:set system/full_page_cache/caching_application 2 --lock-env
docker-compose run --rm test magento-command setup:config:set --http-cache-hosts=varnish -n
docker-compose run --rm test magento-command config:set admin/security/admin_account_sharing 1
docker-compose run --rm test magento-command config:set admin/security/use_form_key 0
docker-compose run --rm test magento-command config:set web/secure/use_in_adminhtml 0
docker-compose run --rm test magento-command cache:clean
CONFIG="MAGENTO_BASE_URL=http://magento2.docker/
MAGENTO_BACKEND_NAME=admin
MAGENTO_ADMIN_USERNAME=admin
MAGENTO_ADMIN_PASSWORD=123123q
MODULE_WHITELIST=Magento_Framework,Magento_ConfigurableProductWishlist,Magento_ConfigurableProductCatalogSearch
SELENIUM_HOST=selenium"
docker-compose run --rm test bash -c "echo \"$CONFIG\" > /app/dev/tests/acceptance/.env"
docker-compose run --rm test mftf-command build:project
docker-compose run --rm test mftf-command generate:tests --debug=none
docker-compose run --rm test mftf-command run:test AdminLoginTest --debug=none
IF you added a Demo moudle in Developer mode:
docker-compose run --rm test mftf-command run:test OpenStorefrontDemoPageTest --debug=non