Skip to content

Conversation

@kozer
Copy link
Contributor

@kozer kozer commented Aug 9, 2024

This PR adds BDD ( behat ) tests for sqlite.
Fixes #3

Testing

N/A

@kozer kozer requested a review from jeroenpf August 12, 2024 13:44
@kozer
Copy link
Contributor Author

kozer commented Aug 14, 2024

@jeroenpf , I need some assistant here. Although the tests are marked to run only on slite "mode", it seems that it still fails the tests.
Here is what I get when I run tests locally, on "MySQL mode":

No scenarios
No steps
0m0.19s (10.96Mb)
Script rerun-behat-tests handling the behat-rerun event returned with error code 1

Do you have any idea on how we surpass this? Thanks!

@jeroenpf
Copy link
Contributor

I think this might be because there are no tests at all for MySQL? the output you shared shows that no scenarios and no steps were executed, indicating that the exit code 1 is caused by there not being any tests at all. What if you create a simple scenario that runs for both MySQL and SQLite? Do you still get an error in that case?

@kozer
Copy link
Contributor Author

kozer commented Aug 19, 2024

I think this might be because there are no tests at all for MySQL? the output you shared shows that no scenarios and no steps were executed, indicating that the exit code 1 is caused by there not being any tests at all. What if you create a simple scenario that runs for both MySQL and SQLite? Do you still get an error in that case?

@jeroenpf , I updated the code, by adding one more test that pass each time.
I have also updated composer.json, which I want you to take a look, as I make the install to pass again,but I'm not sure if this is the best way to go.
Thanks!

@kozer kozer merged commit 9dd8078 into main Sep 10, 2024
@sejas sejas deleted the add/bdd_tests branch November 25, 2024 04:59
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.

Create WP CLI SQLite command behat tests

3 participants