Skip to content

Implement wp db check#3278

Closed
szepeviktor wants to merge 3 commits into
wp-cli:masterfrom
szepeviktor:db-check
Closed

Implement wp db check#3278
szepeviktor wants to merge 3 commits into
wp-cli:masterfrom
szepeviktor:db-check

Conversation

@szepeviktor
Copy link
Copy Markdown
Contributor

Closes #3273

Comment thread features/db.feature Outdated
Then the return code should be 1

When I run `wp db check`
Then STDOUT should not be empty
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you improve this test to:

Then STDOUT should be:

And verify the output is what's expected?

Copy link
Copy Markdown
Contributor Author

@szepeviktor szepeviktor Aug 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was encouraged by the other two tests.

Does this seem OK?

wp_cli_test.wp_commentmeta                         OK
wp_cli_test.wp_comments                            OK
wp_cli_test.wp_links                               OK
wp_cli_test.wp_options                             OK
wp_cli_test.wp_postmeta                            OK
wp_cli_test.wp_posts                               OK
wp_cli_test.wp_term_relationships                  OK
wp_cli_test.wp_term_taxonomy                       OK
wp_cli_test.wp_termmeta                            OK
wp_cli_test.wp_terms                               OK
wp_cli_test.wp_usermeta                            OK
wp_cli_test.wp_users                               OK

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this seem OK?

Yep.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szepeviktor Did you mean to post ^ ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. That's off-topic for the pull request, and not really appropriate for the project. I'm going to delete the comment. Please keep conversations on-topic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK :( Let's be serious.

@szepeviktor
Copy link
Copy Markdown
Contributor Author

szepeviktor commented Aug 12, 2016

@danielbachhuber Do you have an idea why PHP7 eats the output?
https://travis-ci.org/wp-cli/wp-cli/builds/151661997

@danielbachhuber
Copy link
Copy Markdown
Member

Do you have an idea why PHP7 easts the output?

Nope :(

@szepeviktor
Copy link
Copy Markdown
Contributor Author

szepeviktor commented Aug 12, 2016

Do we have another another test that tests STDOUT? *with external command

@szepeviktor
Copy link
Copy Markdown
Contributor Author

My fault.

@szepeviktor
Copy link
Copy Markdown
Contributor Author

@szepeviktor
Copy link
Copy Markdown
Contributor Author

szepeviktor commented Aug 12, 2016

When I run wp db check on my box it lists all the tables to STDOUT.

@szepeviktor
Copy link
Copy Markdown
Contributor Author

@danielbachhuber Could you run wp db check yourself?

@ernilambar
Copy link
Copy Markdown
Member

I tried this PR. In Terminal, I got expected output. But in Behat test, table output is not there, only Success: Database checked..

@szepeviktor
Copy link
Copy Markdown
Contributor Author

@danielbachhuber Are you a Behat expert?

@danielbachhuber
Copy link
Copy Markdown
Member

Are you a Behat expert?

Not necessarily. Sorry I haven't taken the time to debug this yet. I'll try to make time to do so in the near future.

@szepeviktor
Copy link
Copy Markdown
Contributor Author

I am trying to find the solution before you.

@danielbachhuber
Copy link
Copy Markdown
Member

Closing in favor of #3332

@szepeviktor
Copy link
Copy Markdown
Contributor Author

3ce2409 is not fair.

Behat has a problem, I don't know what it is. It swallows stdout.

+36204242498
Ezen a készüléken sok az elütés.
Elnézést!

On August 22, 2016 10:32:49 PM CEST, Daniel Bachhuber notifications@github.com wrote:

Closing in favor of #3332

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#3278 (comment)

@danielbachhuber
Copy link
Copy Markdown
Member

Behat has a problem, I don't know what it is. It swallows stdout.

Hm, not locally according to d687049

@szepeviktor szepeviktor deleted the db-check branch October 25, 2016 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants