A container setup to run your Magento 1 module test suite with Ecomdev PHPUnit on your machine. Zero effort required.
Check out my article on Medium: https://t.co/bihTVYuc0b?amp=1.
Clone the repository anywhere on your disk and run ./setup.sh
. The setup script will link the script phpunit-magento
in your /usr/local/bin directory.
Run phpunit-magento
inside a module directory: the command will run the test suite for your module inside the container. You can optionally pass the name of a test class or method as a parameter to filter the test execution.
If you mess up the test database, simply run the setup.sh
script again. This will reset and rebuild container + database and will allow you to start with a fresh setup.
In general, you should increase the GBs available for Docker on MacOS to at least 4 (default is 2) to have an acceptable performance. Check out this guide.
A big thank you to WebDevOps for their great images. It worked out of the box from the first moment!