Skip to content

Conversation

@janw-me
Copy link
Member

@janw-me janw-me commented Jun 13, 2024

When running composer prepare-tests and there is an errro, no usefull information is shown. Now It displays all the variables it uses.
And when giving an error, display where to find the documentation.

janw-me added 3 commits June 13, 2024 14:23
When running composer prepare-tests and there is an errro, no usefull information is shown.
Now It diesplays all the variables it uses.
And when giving an error, display where to find the documentation.
@janw-me janw-me marked this pull request as ready for review June 13, 2024 14:52
@janw-me janw-me requested a review from a team as a code owner June 13, 2024 14:52
Comment on lines +870 to +874
return [
'stdout' => $result[0],
'stderr' => $result[1],
'exit_code' => $result[2],
];
Copy link
Member

Choose a reason for hiding this comment

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

Nit: could use array_combine here: array_combine( [ 'stdout', 'stderr', 'exit_code' ], $result )

Comment on lines +898 to +902
# WP_CLI output functions are suppressed in behat context.
echo 'There was an error connecting to the database:' . \PHP_EOL;
echo ' ' . trim( $sql_result['stderr'] ) . \PHP_EOL;
echo 'run `composer prepare-tests` to connect to the database.' . \PHP_EOL;
die( 1 );
Copy link
Member

Choose a reason for hiding this comment

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

👍

Maybe we could also suggest using SQLite as an alternative ? Often easiest for new contributors.

@swissspidy swissspidy mentioned this pull request May 17, 2025
1 task
@swissspidy
Copy link
Member

Superseded by #261, which resolves merge conflicts

@swissspidy swissspidy closed this May 17, 2025
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.

2 participants