Commit 6922781e authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge branch 'dev' of github.com:IvanChepurnyi/EcomDev_PHPUnit into dev

parents 11cc553e 77cf99c6
...@@ -8,8 +8,8 @@ This extension was created especially for resolving this problem and promoting t ...@@ -8,8 +8,8 @@ This extension was created especially for resolving this problem and promoting t
System Requirements System Requirements
------------------- -------------------
* PHP 5.3 or higher * PHP 5.3 or higher
* PHPUnit 3.6.x * PHPUnit 3.7.x
* Magento CE1.4.x-1.5.x/PE1.9.x-PE1.10.x/EE1.9.x-1.10.x * Magento CE1.4.x-1.7.x/PE1.9.x-PE1.10.x/EE1.9.x-1.12.x
Documentation Documentation
------------- -------------
...@@ -40,32 +40,12 @@ required for proper controller tests. ...@@ -40,32 +40,12 @@ required for proper controller tests.
4. Run the unit tests first time for installing test database. It will take about 3 minutes. 4. Run the unit tests first time for installing test database. It will take about 3 minutes.
$ phpunit UnitTests.php $ phpunit
5. If it shows that there was no tests found, it means that extension was successfully 5. If it shows that there was no tests found, it means that extension was successfully
installed. If it shows some errors than it means that your customizations has install installed. If it shows some errors than it means that your customizations has install
scripts that relay on your current database data so you should fix them. scripts that relay on your current database data so you should fix them.
### Magento Connect
1. Get the extension key from the [extension page](http://www.magentocommerce.com/magento-connect/EcomDev/extension/5717/ecomdev_phpunit) and install it via Magento Connect manager.
2. Open app/etc/local.xml.phpunit in editor that you are comfortable with:
1. Specify database credentials that will be used for test suite in
**global/resources/default_setup/connection** node
2. Specify **base_url** for **secure** and **unsecure** requests in **default/web** node. It is
required for proper controller tests.
3. Run the unit tests first time for installing test database. It will take about 3 minutes.
$ phpunit UnitTests.php
4. If it shows that there was no tests found, it means that extension was successfully
installed. If it shows some errors than it means that your customizations has install
scripts that relay on your current database data so you should fix them.
Issue Tracker Issue Tracker
------------- -------------
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<!-- Exclude Mage.php file from code coverage --> <!-- Exclude Mage.php file from code coverage -->
<file>app/Mage.php</file> <file>app/Mage.php</file>
<!-- Exclude template files --> <!-- Exclude template files -->
<directory suffix=".phtml">app/code/design</directory> <directory suffix=".phtml">app/design</directory>
<!-- Exclude Varien & Zend libraries --> <!-- Exclude Varien & Zend libraries -->
<directory suffix=".php">lib/Varien</directory> <directory suffix=".php">lib/Varien</directory>
<directory suffix=".php">lib/Zend</directory> <directory suffix=".php">lib/Zend</directory>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment