Skip to content
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

Ignore E2E test data for Git export #622

Open
wants to merge 1 commit into
base: 5.11.x
Choose a base branch
from

Conversation

MauricioFauth
Copy link
Member

@MauricioFauth MauricioFauth commented Apr 1, 2025

We can work on master branch a way of extracting these tests and run them separately.

- Fixes phpmyadmin#621

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
@MauricioFauth MauricioFauth requested a review from williamdes April 1, 2025 17:26
@@ -93,6 +94,10 @@ public function getErrorsAsArray($obj): array
*/
public function getData(string $name): array
{
if (! file_exists('tests/data/' . $name . '.out')) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this would be too risky for new tests to have missing data
can you check in setUp() if the folder exists?

Copy link
Member Author

Choose a reason for hiding this comment

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

There some test classes that have more than e2e tests, so skipping in setUp() will also skip valid tests that do not depend on that.

Copy link
Member Author

Choose a reason for hiding this comment

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

The best option is to refactor the tests, but I don't know how much refactoring is needed. I already attempted changing those tests (#598), but I'm yet to find a good solution.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, can you turn the phpunit to error when there is skipped tests on the CI?
I think that will be a good safety measure
Or use incomplete instead of skipped

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