Magento Commerce, 1.14.x

Magento 1.x Software Support Notice
For Magento Commerce 1, Magento is providing software support through June 2020. Depending on your Magento Commerce 1 version, software support may include both quality fixes and security patches. Please review our Magento Software Lifecycle Policy to see how your version of Magento Commerce 1 is supported.

Magento Testing Framework

The Magento Test Framework (MTF) is a tool that can run nearly 170 automated functional tests, which are included in Magento and designed to improve the quality of implementations and to make it easier to perform basic acceptance testing when adding extensions, making customizations, or upgrading Magento. For more technical information, see: Introduction to Magento Testing Framework.

Running MTF
1. Make sure your Magento code is up to date.
2. Change to the dev/tests/functional directory, and run composer update to update any dependencies that might prevent tests from running successfully.
  • composer update
3. Start Selenium. Selenium was downloaded by Composer, and can be found in the following directory:

dev/tests/functional/vendor/netwing/selenium-server-standalone

  • Example
    java -jar vendor/netwing/selenium-server-standalone/selenium-server-standalone-2.39.0.jar
4. Start your tests using PHPUnit, using your integrated development environment (IDE), or from the command line.
  • Example
    cd dev/tests/functional
    phpunit