Created
January 11, 2015 17:14
-
-
Save birchestx/a7f94df991a8fd3536b2 to your computer and use it in GitHub Desktop.
Running Magento2 Unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Firstly you need to ensure you have enough memory allocated else the script will fall over. | |
Edit php.ini and I found that setting memory_limit to 1028M was enough (default is 128M). | |
If you want to find your php.ini then you can look at phpinfo.php, or do: | |
php -i | grep php.ini | |
To run the tests goto base root folder and type: | |
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist | |
I found this ran 11329 tests in < 3 minutes and had 31 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you disable the caches the test suite is only marginally slower (for me still 3.06 minutes) and you won't get the errors (that's how it was for me).