Skip to content

A container setup to run your Magento 1 module test suite with Ecomdev PHPUnit.

Notifications You must be signed in to change notification settings

gpaddis/magento1-docker-phpunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPUnit & Magento 1: Docker Tests Container

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.

Setup

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.

Usage

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.

Reset

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.

Troubleshooting

Performance on MacOS

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.

Credits

A big thank you to WebDevOps for their great images. It worked out of the box from the first moment!

About

A container setup to run your Magento 1 module test suite with Ecomdev PHPUnit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages