-
Notifications
You must be signed in to change notification settings - Fork 57
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
Introduce wp db size
#1
Comments
@petenelson Is this something you want to submit a PR for? |
Sure, I can give it a shot. |
Apologies, I'm a bit lost in how this is set up now with different repos. I have the main WP-CLI repo cloned and can run tests, but I'm not 100% positive if I'm using this DB repo correctly.
Is this the right way to work on this? |
@petenelson We're currently working on improving this process. Unfortunately, through a standard So, if you want to stay with the latest stable version, then yes, this is possible way of running the tests. If you want to experience the new way of doing this, you can do the following:
Note: You've changed the Once we've published v1.2.0 of WP-CLI, step 2. will not be necessary anymore. |
Excellent, thanks! |
What's the trick for getting access to |
This is because WP-CLI runs most To get yourself unblocked, you can run We should switch to using named execution points though, to avoid this special case behavior #15 |
I've added the Works great when running I could write the tests using regex, though it doesn't look like any of the Then steps in |
I'd be fine with fetching the database size out of the database with a MySQL query, assigning to a Behat variable, and then comparing |
Thanks! This look like the right solution?
|
Yes, except for the last instance of:
|
Cool, that was there to verify that it was including tables with the standard Some sample output as it's currently written:
|
Go ahead and submit a PR, and we can discuss from there. |
Merge new commits from main repo
Indicate the total size of the database and sizes of each table, a la https://github.com/petenelson/wp-cli-size#usage
The text was updated successfully, but these errors were encountered: