Running Tests - magento/inventory GitHub Wiki

Selenium Server
  • Please Note: In order to run the tests you need to have an instance of Selenium Server running locally.

  1. CD to the acceptance test directory:
    • cd [PATH_TO_MAGENTO_MSI]/dev/tests/acceptance
  2. Generate the Tests:
    • ./vendor/bin/robo generate:tests
  3. There are a few different ways you could run your Tests:
    1. Full Suite of Tests:
      • Robo: ./vendor/bin/robo functional
      • Codeception: ./vendor/bin/codecept run functional --skip-group skip
    2. Specific Group of Tests:
      • Robo: ./vendor/bin/robo group [GROUP_NAME]
      • Codeception: ./vendor/bin/codecept run functional --debug --skip-group skip --group [GROUP_NAME]
    3. MSI Tests - Single Source/Stock Mode:
      • Robo: ./vendor/bin/robo group single_mode
      • Codeception: ./vendor/bin/codecept run functional --debug --skip-group skip --group single_mode
    4. MSI Tests - Multi Source/Stock Mode:
      • Robo: ./vendor/bin/robo group multi_mode
      • Codeception: ./vendor/bin/codecept run functional --debug --skip-group skip --group multi_mode