Sign inSign up

aheadworks/m2test-new

By aheadworks

Updated 4 months ago

Image
0

10K+

aheadworks/m2test-new repository overview

docker-m2test

Image to run automatic tests against desired Magento 2 versions.

Supported tests type:

Contributing

General info

This repo uses Multiplicator python script to produce multiple Dockerfiles and build environments from the initial directory structure containing static assets and Jinja2 templates.

Initial directory structure should be under the skeletons directory.

Built items are placed into the out directory.

See https://github.com/m4x0nus/Multiplicator for more details.

legacy directory is used to keep outdated Magento versions to be able to build them manually.

Adding fresh Magento versions
  1. Edit config.yaml file by adding new magento version to the out list in this file
  2. Add new tags to the Dockerhub https://hub.docker.com/repository/docker/aheadworks/m2test-new/builds/edit
  3. Execute
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/data m4x0nus/multiplicator update -d /data -c /data/config.yaml
  1. Push changes to the master branch to trigger build

Usage

This image can be run agains folder with Magento 2 extension extension

Running unit and static tests

Run unit tests on extension folder against Magento 2.3 and PHP 7.2

docker run -v /local/folder/with/module:/data aheadworks/m2test:2.3-7.2 unit /data

Run static tests and collect test results in JUnit format

docker run -v /local/folder/with/module:/data -v /local/folder/for/results:/results aheadworks/m2test:2.2-7.1 static /data /results

Run unit tests and collect test results in JUnit format(result in /local/folder/for/results/unit-tests.xml

docker run -v /local/folder/with/module:/data -v /local/folder/for/results:/results aheadworks/m2test:2.2-7.1 unit /data /results/unit-tests.xml
Running EQP(Magento coding standard) tests

Run tests from Magento coding standard versus your extension

docker run -v /local/folder/with/module:/data aheadworks/m2test:2.3-7.2 eqp --report=full /data
Validating marketplace package
docker run -v /local/folder/with/module_zip:/data aheadworks/m2test validate_m2_package /data/module-name.zip

Tag summary

Content type

Image

Digest

sha256:c0e88da4e

Size

336.6 MB

Last updated

4 months ago

docker pull aheadworks/m2test-new:2.4.8-p5-with-db-8.3