Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ignore E2E test data for Git export #622

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

Open
MauricioFauth wants to merge 1 commit into phpmyadmin:5.11.x
base: 5.11.x
Choose a base branch
Loading
from MauricioFauth:test-data-git-export-ignore

Conversation

Copy link
Member

@MauricioFauth MauricioFauth commented Apr 1, 2025
edited
Loading

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

williamdes reacted with thumbs up emoji
- Fixes phpmyadmin#621
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
@@ -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

@williamdes williamdes Apr 1, 2025

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

@MauricioFauth MauricioFauth Apr 1, 2025

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

@MauricioFauth MauricioFauth Apr 1, 2025

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

@williamdes williamdes Apr 1, 2025

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
Reviewers

@williamdes williamdes williamdes left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /