extendables / woocommerce-extension-testing
WooCommerce Extendables Testing framework
Installs: 1 621
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 126
Forks: 1
Open Issues: 2
Language:Shell
Type:phpcodesniffer-standard
Requires
- php: >=5.6
- phpunit/phpunit: ^5.7.27|^6.0|^9.0
- woocommerce/woocommerce-sniffs: *
This package is auto-updated.
Last update: 2024-10-09 18:57:04 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