Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.02 KB

running.md

File metadata and controls

32 lines (19 loc) · 1.02 KB

Running the Magento Test Framework (MTF)

This page discusses how to run tests using the MTF.

Prerequisite

Install and configure the MTF as discussed in Installing and Configuring the Magento Test Framework (MTF).

Running MTF

  1. Make sure your Magento 2 code is up-to-date.

  2. Change to the dev/tests/functional directory and run composer update

    composer update updates any dependencies that otherwise prevent tests from running successfully.

  3. Start Selenium (which should have been downloaded for you by Composer). Selenium can be found under the dev/tests/functional/vendor/netwing/selenium-server-standalone directory.

    Example of starting Selenium:

    java -jar vendor/netwing/selenium-server-standalone/selenium-server-standalone-2.39.0.jar
    
  4. Start your tests using PHPUnit. This can be done using your IDE or the command line.

    Example using the command line:

    cd dev/tests/functional
    phpunit