-
Notifications
You must be signed in to change notification settings - Fork 844
Open
Labels
Unit Tests[Pri] Normal[Status] Bug Scrub[Status] Stale[Type] BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended
Description
Steps to reproduce the issue
- Set up the /tmp/wordpress-develop test environment
- clone Jetpack into src/wp-content/plugins/jetpack (e.g. today's master)
- clone WooCommerce into src/wp-content/plugins/woocommerce (e.g. today's master)
- attempt to run the phpunit tests ala
JETPACK_TEST_WOOCOMMERCE=1 phpunit
What I expected
- Success
What happened instead
PHP Warning: require_once(/private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/../../../../woocommerce/tests/framework/factories/class-wc-unit-test-factory-for-webhook.php): failed to open stream: No such file or directory in /private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php on line 31
Warning: require_once(/private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/../../../../woocommerce/tests/framework/factories/class-wc-unit-test-factory-for-webhook.php): failed to open stream: No such file or directory in /private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php on line 31
PHP Fatal error: require_once(): Failed opening required '/private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/../../../../woocommerce/tests/framework/factories/class-wc-unit-test-factory-for-webhook.php' (include_path='.:/Users/allendav/pear/share/pear') in /private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php on line 31
Fatal error: require_once(): Failed opening required '/private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/../../../../woocommerce/tests/framework/factories/class-wc-unit-test-factory-for-webhook.php' (include_path='.:/Users/allendav/pear/share/pear') in /private/tmp/wordpress-develop/src/wp-content/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php on line 31
This is the WooCommerce commit that probably broke Jetpack unit tests: woocommerce/woocommerce@0ac915d
Workaround: checkout woocommerce at a slightly older version, e.g. 3.2.0, that still had the old test directory structure, e.g. https://github.com/woocommerce/woocommerce/releases/tag/3.2.0
Metadata
Metadata
Assignees
Labels
Unit Tests[Pri] Normal[Status] Bug Scrub[Status] Stale[Type] BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended