-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite install-wp-tests.sh as a WP-CLI command #2119
Comments
I don't know if this counts as a bug, but if I have Which means I haven't been requiring I like the idea of having the test installer as a |
@mAAdhaTTah Please open a separate issue for your question. |
From #2050 (comment) Another point regarding the new if [ -d $WP_CORE_DIR ]; then
return;
fi Consider the following scenario: Do tests for WordPress latest (4.3.1) with bash bin/install-wp-tests.sh wordpress_test root '' localhost latest
phpunit This will create the WP core directory and use the latest WordPress version for your test. bash bin/install-wp-tests.sh wordpress_test root '' localhost 4.2
phpunit Now the WP core directory exists (with WP 4.3.1 ) and as a result you test with the wrong version of WP (4.3.1) instead of the version you wanted (4.2) . There should be a check if the WP core directory contains the WordPress version you want to test against. Or just download the correct WP version without checking. |
|
Pros:
WP_CLI::log()
.Con:
The text was updated successfully, but these errors were encountered: