extendables/woocommerce-extension-testing

WooCommerce Extendables Testing framework

Installs: 1 621

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 127

Forks: 1

Open Issues: 2

Language:Shell

Type:phpcodesniffer-standard

dev-master 2020-03-03 15:54 UTC

This package is auto-updated.

Last update: 2024-04-09 18:03:08 UTC


README

Shell scripts to run WooCommerce end to end tests in Travis for WooCommerce extensions

Install

Copy bin/run-e2e-CI.sh into your tests suite bin folder:

wget https://raw.githubusercontent.com/woocommerce/extensions-e2e-core-tests/master/bin/run-e2e-CI.sh -P tests/bin/

Update your travis file:

addons:
  chrome: stable
  apt:
    packages:
      - nginx

sudo: false

matrix:
  fast_finish: true
  include:
  - php: 7.2
    env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 RUN_E2E=1 E2E_FOLDER='core_e2e_tests'

install:
  - bash tests/bin/run-e2e-CI.sh install

before_script:
  - bash tests/bin/run-e2e-CI.sh before

script:
  - bash tests/bin/run-e2e-CI.sh run

Install phpcs ruleset

To add the ruleset globally to phpcs

composer global require extendables/woocommerce-extension-testing:dev-master 

Now it can be used anywhere with phpcs --standard=Extendables