Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Installation

Ricardo Martins edited this page Dec 8, 2015 · 2 revisions

Git Repository

  1. Checkout extension

     $ git clone git://github.com/IvanChepurnyi/EcomDev_PHPUnit.git
    
  2. Copy extension files into Magento root folder or use Module Manager for auto-updating of the extension on all your installments

  3. Open app/etc/local.xml.phpunit in editor that you are comfortable with:

  4. Specify database credentials that will be used for test suite in global/resources/default_setup/connection node.

  5. Specify base_url for secure and unsecure requests in default/web node. It is required for proper controller tests.

  6. Run the unit tests first time (typing phpunit in the main folder) for installing test database. It will take about 3 minutes.

  7. 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.

Magento Connect

  1. Get the extension key from the extension page and install it via Magento Connect manager.

  2. Open app/etc/local.xml.phpunit in editor that you are comfortable with:

  3. Specify database credentials that will be used for test suite in global/resources/default_setup/connection node

  4. Specify base_url for secure and unsecure requests in default/web node. It is required for proper controller tests.

  5. Run the unit tests first time for installing test database. It will take about 3 minutes.

  6. 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.

Clone this wiki locally