* Development Branch: [![Development Branch](https://travis-ci.org/EcomDev/EcomDev_PHPUnit.png?branch=dev)](https://travis-ci.org/EcomDev/EcomDev_PHPUnit)
Documentation
Documentation
-------------
-------------
...
@@ -24,29 +30,38 @@ Installation
...
@@ -24,29 +30,38 @@ Installation
------------
------------
### Git Repository
1. There are two ways of obtaining the extension:
* Use [Module Manager](https://github.com/colinmollenhour/modman)
2. Copy extension files into Magento root folder or use [Module Manager](https://github.com/colinmollenhour/modman) for auto-updating of the extension on all your installments
* Add extension as dependency in your composer.json to install it from [Magento Composer Repository](http://packages.firegento.com/)
```json
3. Open app/etc/local.xml.phpunit in editor that you are comfortable with:
{
"require":{
1. Specify database credentials that will be used for test suite in
2. Specify **base_url** for **secure** and **unsecure** requests in **default/web** node. It is
```
required for proper controller tests.
3. Open your terminal and navigate to your magento directory for performing the following command, they are required to configure system for running the test suite
```bash
# Shell scripts needs to be run from this directory
cd$YOUR_MAGENTO_DIRECTORY/shell
# Specify your test database name and base url for controller tests
php ecomdev-phpunit.php -a magento-config --db-name$DB_NAME--base-url http://your.magento.url/
```
If you receive a warning on PHPUnit checks for optional packages, run the following command
```bash
php ecomdev-phpunit.php -a fix-autoloader
```
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
$ 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, then it means, that your customizations has install scripts that relay on your current database data and you should fix them. Or use your dev database as a base for the tests, but prior first time running the suite.
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
...
@@ -64,3 +79,4 @@ If you want to take a part in improving our extension please create branches bas
...
@@ -64,3 +79,4 @@ If you want to take a part in improving our extension please create branches bas