wp-cli: Command "scaffold theme-tests" doesn't work on v1.5.0

The command scaffold theme-tests doesn’t work on v1.5.0. The error message is Error: Couldn't find install-wp-tests.sh. The same command works fine with v1.4.1.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

@lkraav this doesn’t look like the same issue to me. Could you create a new issue for this? (Though I note that woocommerce memberships is a paid-for plugin so it will be difficult to reproduce/test. Also standard woocommerce commands seem to work ok (on limited testing).)

I’ve added .phar extension and 1.5.0 successfully generated tests.

➜ catalog git:(master) ✗ ./wp-cli.phar scaffold theme-tests coinnews --debug Debug (bootstrap): No readable global config found (0.108s) Debug (bootstrap): Using project config: /Users/sergey/Desktop/catalog/wp-cli.yml (0.109s) Debug (bootstrap): argv: ./wp-cli.phar scaffold theme-tests coinnews --debug (0.109s) Debug (bootstrap): ABSPATH defined: /Users/sergey/Desktop/catalog/wp/ (0.109s) Debug (bootstrap): Begin WordPress load (0.11s) Debug (bootstrap): wp-config.php path: /Users/sergey/Desktop/catalog/wp/wp-config.php (0.11s) Debug (bootstrap): Set URL: catalog.com/ (0.115s) Debug (bootstrap): Loaded WordPress (0.359s) Debug (bootstrap): Running command: scaffold theme-tests (0.36s) Success: Created test files. ➜ catalog git:(master) ✗ ./wp-cli.phar cli info
OS: Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64 Shell: /bin/zsh PHP binary: /usr/local/Cellar/php72/7.2.2_13/bin/php PHP version: 7.2.2 php.ini used: /usr/local/etc/php/7.2/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /Users/sergey/Desktop/catalog WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config: /Users/sergey/Desktop/catalog/wp-cli.yml WP-CLI version: 1.5.0