Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages