سؤال

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?

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

there is no need. just run phpunit it wil find the phpunit.xml.dist(as fallback) automatically and use the configuration in this file.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top