How run unittest using EcomDev_PHPUnit module?
-
16-10-2019 - |
Question
Here is described old version: http://www.ecomdev.org/2011/02/01/phpunit-and-magento-yes-you-can.html
And they wrote that I need call phpunit UnitTests.php
But I have magento v.1.7. I downloaded newest version: https://github.com/IvanChepurnyi/EcomDev_PHPUnit
But there are not any files like UnitTests.php
How I should run unit test then?
Solution
I think this is the neewst available documentation: http://www.ecomdev.org/wp-content/uploads/2011/05/EcomDev_PHPUnit-0.2.0-Manual.pdf
In the current version EcomDev_PHPUnit
ships with a phpunit.xml.dist
. Rename this one to phpunit.xml
, make modifications if necessary and then simply execute phpunit
without parameters.
OTHER TIPS
there is no need. just run phpunit
it wil find the phpunit.xml.dist
(as fallback) automatically and use the configuration in this file.